Graphical User Interfaces in Matlab - Part 2

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Very instructive guide. Thank you for the video.

REZAphysics
Автор

Thanks a lot. Your video was extremely helpful.

ashmanpotter
Автор

These videos were extremely helpful, thanks.

And by the way, I think you have some aliasing going on when you input 57 as alpha, due to the .1 step size you chose for x.

MattMcConaha
Автор

thank for your video I followed ur tutorial and code my first GUI, it was fun and Just want to ask how do u handle error (ie if user put invalid in put how to output error to the user) thanks

darcytakhar
Автор

The figure is already showing when this code is run, so the plot command edits that figure and it displays immediately. It would probably work without the pHandles part, but I haven't tried that. If the figure isn't already showing, then you need a "figure" command to display it. There is sample code in the Matlab documentation that is very similar to this. You might want to take a look. Send me an email if you can't find it (I can't easily post links).

jakeblanchard
Автор

great video... but I was just wondering if you meant to plot: y = sin(alpha*x*pi) rather than y = sin(alpha*x)?

acadacabra
Автор

Yes, I think there probably is some aliasing. I was a little cavalier playing around with that parameter.

jakeblanchard
Автор

hi, jake i want to tank u for your wonderful tutorial. make more plz.
i have one problem following your tutorial it did not do the command
set(handles.output, 'string', double2str(sin(alpha*pi)));
here i named tag textoutput as output and all are the same
here is the error
??? Error using ==> set
There is no 'string' property in the 'figure' class.
Error in ==> demogui>buttonplot_Callback at 102
set(handles.output, 'string', num2str(sin(alpha*pi)));
Error in ==> gui_mainfcn at 96
feval..

lokeshjain
Автор

There are a variety of ways to do this and there are resources on the net that present much more than I can provide here. I can't put links in these comments, so I would suggest that you google the following keywords: matlab gui error handling

jakeblanchard