SlideShare a Scribd company logo
Creating a GUI in Matlab
                               USING GUIDE




By Sahil Potnis, VIT, Mumbai
STEP 1:

 Open Matlab and type „guide‟ in command window .


 Guide stands for GUI Development Environment.


OR

 You can select File-> new-> GUI.
It is one and the same thing......


By Sahil Potnis, VIT, Mumbai
Create New GUI




    By Sahil Potnis, VIT,
    Mumbai
STEP 2:

 Select a standard template from the list:
Say for example : GUI with uicontrols

 Save the GUI with a certain name –abc


 This generates a abc.m file with the GUI code.


 Now , you can play with the code.


 Do not alter the initialization code up to line no:74

By Sahil Potnis, VIT, Mumbai
STEP 3:

 All objects present within the GUI have their own
  tags.
 Double click on an object to display it „s properties


 Tag property will show you the existing tag of that
  object.

 Callback and Create function of these are associated
  with this tag


By Sahil Potnis, VIT, Mumbai
 If you change the tag, and save the file automatically
   abc.m will be updated

 (note-Do not alter the .m file to change the tag, make
   changes in .fig file and save it).

 Ta of your selected object is displayed at the right
   hand bottom corner of your .fig window.



By Sahil Potnis, VIT, Mumbai
 Now I will explain rest of basics using reference to the
   “Density * volume =Mass example”

 Density, Volume are the Edit text boxes in which user
   can enter the values

 Mass is the static text box in which answer is displayed.


 Calculate and Reset are the two Pushbuttons while Units
   consists of two radio buttons

By Sahil Potnis, VIT, Mumbai
STEP 4 :

 Mutual Exclusivity of these radio buttons is preserved as
   they are embedded within a “button group‟‟ container.


 A create function is essential when a value is to be
   obtained from the User


 A callback function is essential when a value is to be
   assigned to a certain tag (static text) Or a certain object
   has to perform a specific task (pushbutton)

By Sahil Potnis, VIT, Mumbai
 Functions related to specific Objects can be viewed
   by using : View Callback




By Sahil Potnis, VIT, Mumbai
 You can further change the „calculate callback‟
  function as per your usage:

 Even a function can be created within „calculate‟ as
  follows:

Mass=fxname(handles.metricdata.density,handles.metricdat.volume)


 Save a fxname.m file within the same folder and
  write the function within that file.

By Sahil Potnis, VIT, Mumbai
 Function [mass]=fxname(density,volume)
%
CODE
%
return

 Make sure the parameter names and number of
  parameters within the function and main file match.



By Sahil Potnis, VIT, Mumbai
EXPECTED OUTCOME :




   You can now create a simple User Interface with User
     Input and perform certain operations on those input
     values....

  Keep on trying new things.....Its the best way to learn.!!




Watch out this space for tutorials on Matlab....
 By Sahil Potnis, VIT, Mumbai
Thank You

 For further advanced Matlab programming visit :
  http://sahilpotnis.blogspot.in/

 Or drop me a mail at :
sahil.potnis@vit.edu.in




By Sahil Potnis, VIT, Mumbai

More Related Content

PPTX
PPT
GUI -THESIS123
PPTX
GUI in Matlab - 2
PPTX
Gui in matlab :
PPTX
Gui in java
PPTX
Graphical User Interface (Gui)
PPT
Graphical User Interface in JAVA
GUI -THESIS123
GUI in Matlab - 2
Gui in matlab :
Gui in java
Graphical User Interface (Gui)
Graphical User Interface in JAVA

What's hot (20)

PPTX
GUI Programming in JAVA (Using Netbeans) - A Review
PPTX
visual basic programming
PPT
GUI Programming In Java
PPTX
Windows form application - C# Training
PPT
Java layoutmanager
PPT
06 win forms
PPT
PDF
Ajp notes-chapter-01
DOCX
Visual C# 2010
PPSX
Basic of Java Netbeans
PPT
Graphical User Interface (GUI) - 1
PDF
Ajp notes-chapter-01
PPT
Labels and buttons
PPT
Visual basic
PDF
Intake 38 8
PPT
Visual basic 6.0
PPTX
Spf chapter 03 WinForm
PDF
Programming Without Coding Technology (PWCT) - Center Window
PPTX
Basic iOS Training with SWIFT - Part 3
GUI Programming in JAVA (Using Netbeans) - A Review
visual basic programming
GUI Programming In Java
Windows form application - C# Training
Java layoutmanager
06 win forms
Ajp notes-chapter-01
Visual C# 2010
Basic of Java Netbeans
Graphical User Interface (GUI) - 1
Ajp notes-chapter-01
Labels and buttons
Visual basic
Intake 38 8
Visual basic 6.0
Spf chapter 03 WinForm
Programming Without Coding Technology (PWCT) - Center Window
Basic iOS Training with SWIFT - Part 3
Ad

Viewers also liked (20)

PDF
PDF
Pengolahan Citra Digital Dengan Menggunakan MATLAB
DOCX
Contoh program matlab
PPTX
Graphical User Interface
PDF
Introduction to Digital Image Processing Using MATLAB
PPTX
Muhammad rizwan aqeel rlp.ppt
PDF
Natural Language Checking with Program Checking Tools
PDF
TIP_E-Conversion_System
DOCX
MATLAB TRAINING COURSE IN CHENNAI@MAASTECH/MATLAB
PPT
Digital image processing using matlab (fundamentals)
PDF
Design and development of matlab gui based fuzzy logic controllers for ac motor
PPTX
Presen_Segmentation
PPT
Image processing for robotics
PPTX
Slides suzaimah madinah(1)
PDF
Developing graphical user interface for analysis of beam by using matlab soft...
DOCX
MINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICAL
PPTX
2 mikrokontroler atmega 8535
PPTX
Text detection and recognition from natural scenes
DOC
BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING
PDF
DSBW Final Exam (Spring Sementer 2010)
Pengolahan Citra Digital Dengan Menggunakan MATLAB
Contoh program matlab
Graphical User Interface
Introduction to Digital Image Processing Using MATLAB
Muhammad rizwan aqeel rlp.ppt
Natural Language Checking with Program Checking Tools
TIP_E-Conversion_System
MATLAB TRAINING COURSE IN CHENNAI@MAASTECH/MATLAB
Digital image processing using matlab (fundamentals)
Design and development of matlab gui based fuzzy logic controllers for ac motor
Presen_Segmentation
Image processing for robotics
Slides suzaimah madinah(1)
Developing graphical user interface for analysis of beam by using matlab soft...
MINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICAL
2 mikrokontroler atmega 8535
Text detection and recognition from natural scenes
BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING
DSBW Final Exam (Spring Sementer 2010)
Ad

Similar to GUI in Matlab - 1 (20)

PPTX
intro_gui
PPTX
Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016
PDF
Visualbasic tutorial
PPTX
Vb ch 3-object-oriented_fundamentals_in_vb.net
PPTX
Chapter 1
PPTX
intro to Matlab GUuuuuuuuuuuuuuuuuI.pptx
PPTX
iOS Development (Part 1)
PPTX
VB_Ch_3_Object_Oriented_Fundamentals_in.pptx
PDF
Tutorial MATLAB GUI. MATLAB GUI (G hi l U I t f ) T t i l f B i MATLAB GUI (G...
PDF
Unit IV-Checkboxes and Radio Buttons in VB.Net in VB.NET
PDF
Intake 37 9
PPTX
object oriented fundamentals in vb.net
PPTX
3.5 the controls object
PDF
Intake 38 9
DOCX
PPTX
Unit iv
PDF
Vbtutorial
PDF
Vb 6ch123
PPT
Introduction to programming using Visual Basic 6
PDF
H4 Lab 02 X Page Advanced
intro_gui
Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016
Visualbasic tutorial
Vb ch 3-object-oriented_fundamentals_in_vb.net
Chapter 1
intro to Matlab GUuuuuuuuuuuuuuuuuI.pptx
iOS Development (Part 1)
VB_Ch_3_Object_Oriented_Fundamentals_in.pptx
Tutorial MATLAB GUI. MATLAB GUI (G hi l U I t f ) T t i l f B i MATLAB GUI (G...
Unit IV-Checkboxes and Radio Buttons in VB.Net in VB.NET
Intake 37 9
object oriented fundamentals in vb.net
3.5 the controls object
Intake 38 9
Unit iv
Vbtutorial
Vb 6ch123
Introduction to programming using Visual Basic 6
H4 Lab 02 X Page Advanced

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
Teaching material agriculture food technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction
The Rise and Fall of 3GPP – Time for a Sabbatical?
The AUB Centre for AI in Media Proposal.docx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectroscopy.pptx food analysis technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Teaching material agriculture food technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
sap open course for s4hana steps from ECC to s4
Empathic Computing: Creating Shared Understanding
Encapsulation_ Review paper, used for researhc scholars

GUI in Matlab - 1

  • 1. Creating a GUI in Matlab USING GUIDE By Sahil Potnis, VIT, Mumbai
  • 2. STEP 1:  Open Matlab and type „guide‟ in command window .  Guide stands for GUI Development Environment. OR  You can select File-> new-> GUI. It is one and the same thing...... By Sahil Potnis, VIT, Mumbai
  • 3. Create New GUI By Sahil Potnis, VIT, Mumbai
  • 4. STEP 2:  Select a standard template from the list: Say for example : GUI with uicontrols  Save the GUI with a certain name –abc  This generates a abc.m file with the GUI code.  Now , you can play with the code.  Do not alter the initialization code up to line no:74 By Sahil Potnis, VIT, Mumbai
  • 5. STEP 3:  All objects present within the GUI have their own tags.  Double click on an object to display it „s properties  Tag property will show you the existing tag of that object.  Callback and Create function of these are associated with this tag By Sahil Potnis, VIT, Mumbai
  • 6.  If you change the tag, and save the file automatically abc.m will be updated  (note-Do not alter the .m file to change the tag, make changes in .fig file and save it).  Ta of your selected object is displayed at the right hand bottom corner of your .fig window. By Sahil Potnis, VIT, Mumbai
  • 7.  Now I will explain rest of basics using reference to the “Density * volume =Mass example”  Density, Volume are the Edit text boxes in which user can enter the values  Mass is the static text box in which answer is displayed.  Calculate and Reset are the two Pushbuttons while Units consists of two radio buttons By Sahil Potnis, VIT, Mumbai
  • 8. STEP 4 :  Mutual Exclusivity of these radio buttons is preserved as they are embedded within a “button group‟‟ container.  A create function is essential when a value is to be obtained from the User  A callback function is essential when a value is to be assigned to a certain tag (static text) Or a certain object has to perform a specific task (pushbutton) By Sahil Potnis, VIT, Mumbai
  • 9.  Functions related to specific Objects can be viewed by using : View Callback By Sahil Potnis, VIT, Mumbai
  • 10.  You can further change the „calculate callback‟ function as per your usage:  Even a function can be created within „calculate‟ as follows: Mass=fxname(handles.metricdata.density,handles.metricdat.volume)  Save a fxname.m file within the same folder and write the function within that file. By Sahil Potnis, VIT, Mumbai
  • 11.  Function [mass]=fxname(density,volume) % CODE % return  Make sure the parameter names and number of parameters within the function and main file match. By Sahil Potnis, VIT, Mumbai
  • 12. EXPECTED OUTCOME :  You can now create a simple User Interface with User Input and perform certain operations on those input values.... Keep on trying new things.....Its the best way to learn.!! Watch out this space for tutorials on Matlab.... By Sahil Potnis, VIT, Mumbai
  • 13. Thank You  For further advanced Matlab programming visit : http://sahilpotnis.blogspot.in/  Or drop me a mail at : sahil.potnis@vit.edu.in By Sahil Potnis, VIT, Mumbai