12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

uimenuExamplesThis example creates a menu labeled Workspace whose choices allow users tocreate a new figure window, save workspace variables, and exit out of<strong>MATLAB</strong>. In addition, it defines an accelerator key for the Quit option.f = uimenu('Label','Workspace');uimenu(f,'Label','New Figure','Callback','figure');uimenu(f,'Label','Save','Callback','save');uimenu(f,'Label','Quit','Callback','exit',...'Separator','on','Accelerator','Q');ObjectHierarchyRootFigureAxesUicontrolUimenuUicontextmenuUimenuUimenuSee Alsouicontrol, uicontextmenu, gcbo, set, get, figure2-561

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!