Graphical User Interfaces in Matlab - Part 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,673
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 14, 2011

This is part 2 of a video that demonstrates how to create a simple graphical user interface in Matlab. This video was prepared as part of a course I teach for a distance masters program for engineers. More information can be found at http://mepp.engr.wisc.edu/ Also, additional Matlab videos can be found at http://blanchard.ep.wisc.edu/

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (jakeblanchard)

  • i got the information from this video but how to save this graph

  • @bangash669

    I suppose you could just do a screen grab, but that isn't very elegant. I've never tried to do this, so it would take some searching. You might try something like this (from the Matlab Central site): F=getframe(handles.axes1); %select axes in GUI figure(); %new figure image(F.cdata); %show selected axes in new figure  saveas(gcf, 'path', 'fig'); %save figure close(gcf); %and close it

  • @jakeblanchard

    One more time, without the wrapping  F=getframe(handles.axes1); %select axes in GUI figure(); %new figure image(F.cdata); %show selected axes in new figure saveas(gcf, 'path', 'fig'); %save figure close(gcf); %and close it

  • @jakeblanchard

    I despise YouTube's commenting tools!

  • 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',do­uble2str(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',nu­m2str(sin(alpha*pi)));

    Error in ==> gui_mainfcn at 96 feval..

  • @lokeshjainajay

    I've posted the files I created in producing this video to my web site. You can find it at

    blanchard "dot" ep "dot" wisc "dot" edu

    Why don't you download them and see if they help to answer your question. If you can't find the files, email me directly and I will send them to you.

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • ahh man! its much easier to do such things in excel...... matlab sucks!!!!

  • awesome!

  • thanks a lot man

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more