Maintain or Transitionfigure
-Based Apps
figure
function, or apps exported from GUIDEIf you create apps using thefigure
function or export a GUIDE app to a MATLAB®file, you can continue to develop, run, and edit these apps, but they will not take full advantage of the features and UI components that are available with UI figures. For more information about other ways to build apps, seeWays to Build Apps.
Functions
Components
axes |
Create Cartesian axes |
uicontrol |
Create user interface control |
uitable |
Create table user interface component |
uipanel |
Create panel container |
uibuttongroup |
Create button group to manage radio buttons and toggle buttons |
uitab |
Create tabbed panel |
uitabgroup |
Create container for tabbed panels |
uimenu |
Create menu or menu items |
uicontextmenu |
Create context menu component |
uitoolbar |
Create toolbar in figure |
uipushtool |
Create push tool in toolbar |
uitoggletool |
Create toggle tool in toolbar |
Layout
align |
AlignUIControl components andAxes objects |
movegui |
Move figure to specified location on screen |
getpixelposition |
Get component position in pixels |
setpixelposition |
Set component position in pixels |
listfonts |
List available system fonts |
textwrap |
Wrap text for user interface control |
uistack |
Reorder visual stacking of UI components |
Dialog Boxes and Notifications
Alerts
errordlg |
Create error dialog box |
warndlg |
Create warning dialog box |
msgbox |
Create message dialog box |
helpdlg |
Create help dialog box |
waitbar |
Create or update wait bar dialog box |
Confirmation and Input
questdlg |
Create question dialog box |
inputdlg |
Create dialog box to gather user input |
listdlg |
Create list selection dialog box |
uisetcolor |
Open color picker |
uisetfont |
Open font selection dialog box |
export2wsdlg |
Create dialog box for exporting variables to workspace |
File System
uigetfile |
Open file selection dialog box |
uiputfile |
Open dialog box for saving files |
uigetdir |
Open folder selection dialog box |
uiopen |
Open file selection dialog box and load selected file into workspace |
uisave |
Open dialog box for saving variables to MAT-file |
Printing and Export
printdlg |
Open figure Print dialog box |
printpreview |
图打印预览对话框打开box |
exportsetupdlg |
Open figure Export Setup dialog box |
Other
Control Flow
uiwait |
Block program execution and wait to resume |
uiresume |
Resume execution of suspended program |
waitfor |
Block execution and wait for condition |
waitforbuttonpress |
Wait for click or key press |
App Data and Preferences
getappdata |
Retrieve application data |
setappdata |
Store application data |
isappdata |
Determine if application data exists |
rmappdata |
Remove application data |
guidata |
Store or retrieve UI data |
guihandles |
Create structure containing all child objects ofFigure |
uisetpref |
Manage preferences used inuigetpref |
Properties
Components
Axes Properties | Axes appearance and behavior |
UIControl Properties | Control appearance and behavior of user interface control |
Table Properties | Control table UI component appearance and behavior |
Panel Properties | Control panel appearance and behavior |
ButtonGroup Properties | Control button group appearance and behavior |
Tab Properties | Control tab appearance and behavior |
TabGroup Properties | Control tab group appearance and behavior |
Menu Properties | Control menu appearance and behavior |
ContextMenu Properties | Control context menu appearance and behavior |
Toolbar Properties | Control toolbar appearance and behavior |
PushTool Properties | Control push tool appearance and behavior |
ToggleTool Properties | Control toggle tool appearance and behavior |
Topics
- Ways to Build Apps
Choose an app building approach that best suits your project requirements and your preferred workflow.
- Update figure-Based Apps to Use uifigure
学习如何更新你的存在
figure
-based apps to use modern app building functions.- STEP 1:Update App Figure and Containers
- STEP 2:Update UIControl Objects and Callbacks
- STEP 3:Update Dialog Boxes
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina(Español)
- Canada(English)
- United States(English)
Europe
- Belgium(English)
- Denmark(English)
- Deutschland(Deutsch)
- España(Español)
- Finland(English)
- France(Français)
- Ireland(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- Norway(English)
- Österreich(Deutsch)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)