Matlab:Graphical User Interfaces  (GUIs)<br />
GUIs<br />Graphical User Interfaces provide the users a rich and hassle free environment  for viewing, manipulating or run...
GUIs<br />MATLAB provides a useful tool called ‘GUIDE’ for building Graphical User Interfaces. GUIDE stands for GUI Design...
GUIDE<br />The main window of ‘GUIDE’ looks like this: <br />You can visit the HELP and documentation section for sample c...
GUIDE<br />This is the first window of GUIDE. It allows you to select the prototype of the graphical user interface. <br />
GUIDE<br />After selecting  the first option you’ll come to this window. This is our GUI editor. <br />
GUIDE<br />Adding 3 push buttons and an ‘axes’ area. <br />
GUIDE<br />Use the ‘align’ option from ‘Tools’ to align the three pus buttons.  <br />
GUIDE<br />The toolbar option allows you to design your custom toolbar.<br />
GUIDE<br />Save your work by pressing ‘ctrl+s’ or select ‘save’ from the ‘File’ menu. <br />
GUIDE<br />Run the GUI from the ‘Run Figure’ option.<br />
GUIDE<br />This is what we have built till now. <br />
GUIDE<br />Now, lets write a code that opens an image when the first button is pressed.  Search for ‘pushbutton1_Callback(...
GUIDE<br />Now save the m file and run the figure. Now press the first pushbutton!<br />
GUIDE<br />This was a simple example of implementing a GUI using the matlab tool GUIDE. <br />
Visit more self help tutorials<br />Pick a tutorial of your choice and browse through it at your own pace.<br />The tutori...
Upcoming SlideShare
Loading in...5
×

Matlab: Gui

3,445

Published on

Matlab: Gui

Published in: Technology, Art & Photos
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,445
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Matlab: Gui

  1. 1. Matlab:Graphical User Interfaces (GUIs)<br />
  2. 2. GUIs<br />Graphical User Interfaces provide the users a rich and hassle free environment for viewing, manipulating or running their programs. <br />
  3. 3. GUIs<br />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: <br /> &gt;&gt;guide <br />
  4. 4. GUIDE<br />The main window of ‘GUIDE’ looks like this: <br />You can visit the HELP and documentation section for sample codes and examples!<br />
  5. 5. GUIDE<br />This is the first window of GUIDE. It allows you to select the prototype of the graphical user interface. <br />
  6. 6. GUIDE<br />After selecting the first option you’ll come to this window. This is our GUI editor. <br />
  7. 7. GUIDE<br />Adding 3 push buttons and an ‘axes’ area. <br />
  8. 8. GUIDE<br />Use the ‘align’ option from ‘Tools’ to align the three pus buttons. <br />
  9. 9. GUIDE<br />The toolbar option allows you to design your custom toolbar.<br />
  10. 10. GUIDE<br />Save your work by pressing ‘ctrl+s’ or select ‘save’ from the ‘File’ menu. <br />
  11. 11. GUIDE<br />Run the GUI from the ‘Run Figure’ option.<br />
  12. 12. GUIDE<br />This is what we have built till now. <br />
  13. 13. GUIDE<br />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)<br />
  14. 14. GUIDE<br />Now save the m file and run the figure. Now press the first pushbutton!<br />
  15. 15. GUIDE<br />This was a simple example of implementing a GUI using the matlab tool GUIDE. <br />
  16. 16. Visit more self help tutorials<br />Pick a tutorial of your choice and browse through it at your own pace.<br />The tutorials section is free, self-guiding and will not involve any additional support.<br />Visit us at www.dataminingtools.net<br />

×