Matlab provides the GUIDE tool for building graphical user interfaces (GUIs) which provide a rich, hassle-free environment for viewing and manipulating programs. GUIDE allows selecting a prototype and provides a GUI editor for adding elements like buttons and axes. Elements can be aligned using tools and the GUI is saved and run to test functionality like opening an image when a button is pressed, demonstrating a simple example of a GUI created with GUIDE.
2. GUIs Graphical User Interfaces provide the users a rich and hassle free environment for viewing, manipulating or running their programs.
3. GUIs MATLAB provides a useful tool called ‘GUIDE’ for building Graphical User Interfaces. GUIDE stands for GUI Design Environment. It can be initiated by the command: >>guide
4. GUIDE The main window of ‘GUIDE’ looks like this: You can visit the HELP and documentation section for sample codes and examples!
5. GUIDE This is the first window of GUIDE. It allows you to select the prototype of the graphical user interface.
6. GUIDE After selecting the first option you’ll come to this window. This is our GUI editor.
13. GUIDE Now, lets write a code that opens an image when the first button is pressed. Search for ‘pushbutton1_Callback(…)’ line and write the following code in your figure’s m file: (img.bmp is the image that will open when this button is pressed)
14. GUIDE Now save the m file and run the figure. Now press the first pushbutton!
15. GUIDE This was a simple example of implementing a GUI using the matlab tool GUIDE.
16. Visit more self help tutorials Pick a tutorial of your choice and browse through it at your own pace. The tutorials section is free, self-guiding and will not involve any additional support. Visit us at www.dataminingtools.net