2017/09/28

Matlab: Hello GUI with guide

To draw a window or the graphical user interface (GUI) with Matlab, type:

>> guide

Select Blank GUI (Default):


A window for GUI design is displayed:



Draw something such as a "Hello World!" static text and some buttons.


Save the design figure as your preferred name, e.g. gui_layout.fig



A corresponding m file such as gui_layout.m is automatically created.


In the Command Window, type the name of the m-file e.g. type gui_layout and the window designed previously is displayed.








沒有留言:

張貼留言