SlideShare a Scribd company logo
INTRO TO MATLAB + GUI
By Asjad Ali
(P146100)
INTRODUCTION
 MATLAB stands for Matrix Laboratory.
 MATLAB had many functions and toolboxes
 Integration
 Image Processing
 Linear Algebra
 …
 Is high level language
 Solves computing problems
 in a fraction of the time
2
MATLAB SCREEN
 Command Window
 type commands
 Current Directory
 View folders and m-files
 Workspace
 View program variables
 Double click on a variable
to see it in the Array Editor
 Command History
 view past commands
 save a whole session
using diary
3
VARIABLE
No need for types
int a = 10;
float pie = 3.1415;
All variable are of double precision unless specified
pie = 3.1415
s = 123
All variable are 1x1 matrices
4
ARRAY
a vector
 x = [1 2 5 1]
 x = 1 2 5 1
a matrix
 x = [1 2 3; 5 1 4; 3 2 -1]
transpose
 y = x’
5
VECTOR/MATRIX GENERATION
t = [1:10]
 t = 1 2 3 4 5 6 7 8 9 10
x = [1:4; 5:8]
x =
 1 2 3 4
 5 6 7 8
6
MATRIX INDEX
7
MATRIX OPERATIONS
+ addition
- subtraction
* multiplication
/ division
^ power
‘ complex conjugate transpose
8
FLOW CONTROL
if ((a>3) & (b==5))
Some matlab Commands;
elseif (a < 2)
Some matlab commands;
else
Some matlab commands;
end
9
LOOPS
for i=1:100
Matlab Commands;
end
while (condition)
Matlab Commands;
end
10
FUNCTIONS
 No return keyword
 function out1=fname(in1,in2,in3)
 Some commands
 function [out1,out2]=name(in1,in2)
 EXAMPLE
 function [out1, out2] = sumprod(array)
out1 = sum(array)
out2 = prod(array)
11
GUI APPLICATION
 Starting new App
 Home > New > App > GUIDE
 Home > New > App > App Designer
 GUIDE
 Procedural
 App Designer
 Object Oriented
 Both have same components
12
GUIDE QUICK START
13
ADD COMPONENTS
14
CALLBACK
Catchable event of Button
Callback (OnClick)
Create –When button is created
Delete – button is delete
ButtonDown
KeyPress
Execute when event/callback occur
Jumps to that code
15
COMPONENT INSPECTOR
• Set String Property of Button
• set(handles.pushbutton1,‘String',‘test');
• Get String Property of Button
• get(handles.pushbutton1,‘String');
16
SOME USEFULTIPS
 Open Dialog Box
 [filename,pathname] = uigetfile('*.bmp;','Select bmp file');
 Save Dialog Box
 [filename, pathname] = uiputfile('*.bmp;','Save Image', filename);
 sum – Add all element of matrix or vector
 mean – Return mean of matrix or vector
 strcat – String concatenation (+ operator for string not supported)
 a(:) – Return Nx1 matrix considering a multi-dimensional.
17
SHOWING IMAGE
Add Axes component in GUI
Call imshow([…])
18
THANKYOU!
REFERENCES
 www.eee.metu.edu.tr/~yozbek/PDF430/Introduction%20to%20Matlab.ppt
20

More Related Content

What's hot

Introduction to stack
Introduction to stackIntroduction to stack
Introduction to stackvaibhav2910
 
Matlab Script - Loop Control
Matlab Script - Loop ControlMatlab Script - Loop Control
Matlab Script - Loop Control
Shameer Ahmed Koya
 
[ITP - Lecture 10] Switch Statement, Break and Continue Statement in C/C++
[ITP - Lecture 10] Switch Statement, Break and Continue Statement in C/C++[ITP - Lecture 10] Switch Statement, Break and Continue Statement in C/C++
[ITP - Lecture 10] Switch Statement, Break and Continue Statement in C/C++
Muhammad Hammad Waseem
 
Stack application
Stack applicationStack application
Stack application
Student
 
Compiler Construction for DLX Processor
Compiler Construction for DLX Processor Compiler Construction for DLX Processor
Compiler Construction for DLX Processor
Soham Kulkarni
 
Loops in matlab
Loops in matlabLoops in matlab
Loops in matlabTUOS-Sam
 
Application of Stack - Yadraj Meena
Application of Stack - Yadraj MeenaApplication of Stack - Yadraj Meena
Application of Stack - Yadraj Meena
Dipayan Sarkar
 
Stack organization
Stack organizationStack organization
Stack organization
chauhankapil
 
Introduction To Stack
Introduction To StackIntroduction To Stack
Introduction To Stack
Education Front
 
FUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPTFUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPT
03062679929
 
csc 208
csc 208csc 208
csc 208
priska
 
Programming models for event controlled programs
Programming models for event controlled programsProgramming models for event controlled programs
Programming models for event controlled programs
Priya Kaushal
 
Stack and queue
Stack and queueStack and queue
Stack and queue
Shakila Mahjabin
 
Stacks in DATA STRUCTURE
Stacks in DATA STRUCTUREStacks in DATA STRUCTURE
Stacks in DATA STRUCTURE
Mandeep Singh
 
PLSQL Note
PLSQL NotePLSQL Note
PLSQL Note
Arun Sial
 
WAP to find out whether the number is prime or not in java
WAP to find out whether the number is prime or not in javaWAP to find out whether the number is prime or not in java
WAP to find out whether the number is prime or not in java
One97 Communications Limited
 
Conditional Control in MATLAB Scripts
Conditional Control in MATLAB ScriptsConditional Control in MATLAB Scripts
Conditional Control in MATLAB Scripts
Shameer Ahmed Koya
 

What's hot (20)

Introduction to stack
Introduction to stackIntroduction to stack
Introduction to stack
 
Matlab Script - Loop Control
Matlab Script - Loop ControlMatlab Script - Loop Control
Matlab Script - Loop Control
 
[ITP - Lecture 10] Switch Statement, Break and Continue Statement in C/C++
[ITP - Lecture 10] Switch Statement, Break and Continue Statement in C/C++[ITP - Lecture 10] Switch Statement, Break and Continue Statement in C/C++
[ITP - Lecture 10] Switch Statement, Break and Continue Statement in C/C++
 
Me330 lecture2
Me330 lecture2Me330 lecture2
Me330 lecture2
 
Stack application
Stack applicationStack application
Stack application
 
Compiler Construction for DLX Processor
Compiler Construction for DLX Processor Compiler Construction for DLX Processor
Compiler Construction for DLX Processor
 
Loops in matlab
Loops in matlabLoops in matlab
Loops in matlab
 
Application of Stack - Yadraj Meena
Application of Stack - Yadraj MeenaApplication of Stack - Yadraj Meena
Application of Stack - Yadraj Meena
 
Stack organization
Stack organizationStack organization
Stack organization
 
Introduction To Stack
Introduction To StackIntroduction To Stack
Introduction To Stack
 
FUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPTFUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPT
 
csc 208
csc 208csc 208
csc 208
 
Chapter2a
Chapter2aChapter2a
Chapter2a
 
Programming models for event controlled programs
Programming models for event controlled programsProgramming models for event controlled programs
Programming models for event controlled programs
 
Stack and queue
Stack and queueStack and queue
Stack and queue
 
Stacks in DATA STRUCTURE
Stacks in DATA STRUCTUREStacks in DATA STRUCTURE
Stacks in DATA STRUCTURE
 
Functions in C++
Functions in C++Functions in C++
Functions in C++
 
PLSQL Note
PLSQL NotePLSQL Note
PLSQL Note
 
WAP to find out whether the number is prime or not in java
WAP to find out whether the number is prime or not in javaWAP to find out whether the number is prime or not in java
WAP to find out whether the number is prime or not in java
 
Conditional Control in MATLAB Scripts
Conditional Control in MATLAB ScriptsConditional Control in MATLAB Scripts
Conditional Control in MATLAB Scripts
 

Viewers also liked

Matlab GUI
Matlab GUIMatlab GUI
MINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICAL
MINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICALMINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICAL
MINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICALASHOKKUMAR RAMAR
 
BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING
BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING
BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING
maasarun
 
Chapter 01
Chapter 01Chapter 01
Chapter 01llmeade
 
14b. Computer Systems Extra Output
14b. Computer Systems   Extra Output14b. Computer Systems   Extra Output
14b. Computer Systems Extra OutputNew Era University
 
13a.Computer Systems Extra Input
13a.Computer Systems   Extra Input13a.Computer Systems   Extra Input
13a.Computer Systems Extra InputNew Era University
 
Chapter 04
Chapter 04Chapter 04
Chapter 04llmeade
 
Chapter 03
Chapter 03Chapter 03
Chapter 03llmeade
 
27. Computer Applications Business And Engineering
27. Computer Applications   Business And Engineering27. Computer Applications   Business And Engineering
27. Computer Applications Business And EngineeringNew Era University
 
12. Computer Systems Hardware 2
12. Computer Systems   Hardware 212. Computer Systems   Hardware 2
12. Computer Systems Hardware 2New Era University
 
GUI in Matlab - 1
GUI in Matlab - 1GUI in Matlab - 1
GUI in Matlab - 1
Sahil Potnis
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1New Era University
 
Sensors for Biomedical Devices and systems
Sensors for Biomedical Devices and systemsSensors for Biomedical Devices and systems
Sensors for Biomedical Devices and systems
Gunjan Patel
 
Vtoc, Use Case, Activity Diagram
Vtoc, Use Case, Activity DiagramVtoc, Use Case, Activity Diagram
Vtoc, Use Case, Activity DiagramNew Era University
 
16. Computer Systems Basic Software 2
16. Computer Systems   Basic Software 216. Computer Systems   Basic Software 2
16. Computer Systems Basic Software 2New Era University
 
Embedded systems in biomedical applications
Embedded systems in biomedical applicationsEmbedded systems in biomedical applications
Embedded systems in biomedical applications
Seminar Links
 
Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1
PRN USM
 
Basic components of computer system
Basic components  of computer systemBasic components  of computer system
Basic components of computer system
TECHNOHABIT
 
Matlab GUI
Matlab GUIMatlab GUI
Graphical User Interface (Gui)
Graphical User Interface (Gui)Graphical User Interface (Gui)
Graphical User Interface (Gui)
Bilal Amjad
 

Viewers also liked (20)

Matlab GUI
Matlab GUIMatlab GUI
Matlab GUI
 
MINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICAL
MINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICALMINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICAL
MINI PROJECTS&INPLANT TRAINING-PROJECT KITS FOR ECE/EEE/E&I/ICE/BIOMEDICAL
 
BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING
BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING
BIOMEDICAL APPLICATION EMBEDDED SYSTEMS INPLANT TRAINING
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
14b. Computer Systems Extra Output
14b. Computer Systems   Extra Output14b. Computer Systems   Extra Output
14b. Computer Systems Extra Output
 
13a.Computer Systems Extra Input
13a.Computer Systems   Extra Input13a.Computer Systems   Extra Input
13a.Computer Systems Extra Input
 
Chapter 04
Chapter 04Chapter 04
Chapter 04
 
Chapter 03
Chapter 03Chapter 03
Chapter 03
 
27. Computer Applications Business And Engineering
27. Computer Applications   Business And Engineering27. Computer Applications   Business And Engineering
27. Computer Applications Business And Engineering
 
12. Computer Systems Hardware 2
12. Computer Systems   Hardware 212. Computer Systems   Hardware 2
12. Computer Systems Hardware 2
 
GUI in Matlab - 1
GUI in Matlab - 1GUI in Matlab - 1
GUI in Matlab - 1
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1
 
Sensors for Biomedical Devices and systems
Sensors for Biomedical Devices and systemsSensors for Biomedical Devices and systems
Sensors for Biomedical Devices and systems
 
Vtoc, Use Case, Activity Diagram
Vtoc, Use Case, Activity DiagramVtoc, Use Case, Activity Diagram
Vtoc, Use Case, Activity Diagram
 
16. Computer Systems Basic Software 2
16. Computer Systems   Basic Software 216. Computer Systems   Basic Software 2
16. Computer Systems Basic Software 2
 
Embedded systems in biomedical applications
Embedded systems in biomedical applicationsEmbedded systems in biomedical applications
Embedded systems in biomedical applications
 
Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1
 
Basic components of computer system
Basic components  of computer systemBasic components  of computer system
Basic components of computer system
 
Matlab GUI
Matlab GUIMatlab GUI
Matlab GUI
 
Graphical User Interface (Gui)
Graphical User Interface (Gui)Graphical User Interface (Gui)
Graphical User Interface (Gui)
 

Similar to Intro to MATLAB GUI

Chapter 1.ppt
Chapter 1.pptChapter 1.ppt
Chapter 1.ppt
Indra Hermawan
 
matlabchapter1.ppt
matlabchapter1.pptmatlabchapter1.ppt
matlabchapter1.ppt
PariaMotahari1
 
Matlab for diploma students(1)
Matlab for diploma students(1)Matlab for diploma students(1)
Matlab for diploma students(1)
Retheesh Raj
 
From zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyondFrom zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyond
MahuaPal6
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
Vinay Kumar
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
Tarun Gehlot
 
Raushan's MATLB PPT..pptx
Raushan's MATLB PPT..pptxRaushan's MATLB PPT..pptx
Raushan's MATLB PPT..pptx
hmghj
 
Introduction to Matlab.pdf
Introduction to Matlab.pdfIntroduction to Matlab.pdf
Introduction to Matlab.pdf
ssuser43b38e
 
1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx
BeheraA
 
Applied numerical methods lec2
Applied numerical methods lec2Applied numerical methods lec2
Applied numerical methods lec2
Yasser Ahmed
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
lekhacce
 
Matlab ch1 intro
Matlab ch1 introMatlab ch1 intro
Matlab ch1 intro
Ragu Nathan
 
“Tasks” in NetLogo 5.0beta1
“Tasks” in NetLogo 5.0beta1“Tasks” in NetLogo 5.0beta1
“Tasks” in NetLogo 5.0beta1SethTisue
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
Dnyanesh Patil
 
Matlab basic and image
Matlab basic and imageMatlab basic and image
Matlab basic and image
Divyanshu Rasauria
 
Matlab-3.pptx
Matlab-3.pptxMatlab-3.pptx
Matlab-3.pptx
aboma2hawi
 

Similar to Intro to MATLAB GUI (20)

Palm m3 chapter1b
Palm m3 chapter1bPalm m3 chapter1b
Palm m3 chapter1b
 
Chapter 1.ppt
Chapter 1.pptChapter 1.ppt
Chapter 1.ppt
 
matlabchapter1.ppt
matlabchapter1.pptmatlabchapter1.ppt
matlabchapter1.ppt
 
Assignment1
Assignment1Assignment1
Assignment1
 
Matlab for diploma students(1)
Matlab for diploma students(1)Matlab for diploma students(1)
Matlab for diploma students(1)
 
From zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyondFrom zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyond
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Raushan's MATLB PPT..pptx
Raushan's MATLB PPT..pptxRaushan's MATLB PPT..pptx
Raushan's MATLB PPT..pptx
 
Introduction to Matlab.pdf
Introduction to Matlab.pdfIntroduction to Matlab.pdf
Introduction to Matlab.pdf
 
Lec1
Lec1Lec1
Lec1
 
1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx
 
Applied numerical methods lec2
Applied numerical methods lec2Applied numerical methods lec2
Applied numerical methods lec2
 
Learn Matlab
Learn MatlabLearn Matlab
Learn Matlab
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
 
Matlab ch1 intro
Matlab ch1 introMatlab ch1 intro
Matlab ch1 intro
 
“Tasks” in NetLogo 5.0beta1
“Tasks” in NetLogo 5.0beta1“Tasks” in NetLogo 5.0beta1
“Tasks” in NetLogo 5.0beta1
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Matlab basic and image
Matlab basic and imageMatlab basic and image
Matlab basic and image
 
Matlab-3.pptx
Matlab-3.pptxMatlab-3.pptx
Matlab-3.pptx
 

Recently uploaded

Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 

Intro to MATLAB GUI

  • 1. INTRO TO MATLAB + GUI By Asjad Ali (P146100)
  • 2. INTRODUCTION  MATLAB stands for Matrix Laboratory.  MATLAB had many functions and toolboxes  Integration  Image Processing  Linear Algebra  …  Is high level language  Solves computing problems  in a fraction of the time 2
  • 3. MATLAB SCREEN  Command Window  type commands  Current Directory  View folders and m-files  Workspace  View program variables  Double click on a variable to see it in the Array Editor  Command History  view past commands  save a whole session using diary 3
  • 4. VARIABLE No need for types int a = 10; float pie = 3.1415; All variable are of double precision unless specified pie = 3.1415 s = 123 All variable are 1x1 matrices 4
  • 5. ARRAY a vector  x = [1 2 5 1]  x = 1 2 5 1 a matrix  x = [1 2 3; 5 1 4; 3 2 -1] transpose  y = x’ 5
  • 6. VECTOR/MATRIX GENERATION t = [1:10]  t = 1 2 3 4 5 6 7 8 9 10 x = [1:4; 5:8] x =  1 2 3 4  5 6 7 8 6
  • 8. MATRIX OPERATIONS + addition - subtraction * multiplication / division ^ power ‘ complex conjugate transpose 8
  • 9. FLOW CONTROL if ((a>3) & (b==5)) Some matlab Commands; elseif (a < 2) Some matlab commands; else Some matlab commands; end 9
  • 10. LOOPS for i=1:100 Matlab Commands; end while (condition) Matlab Commands; end 10
  • 11. FUNCTIONS  No return keyword  function out1=fname(in1,in2,in3)  Some commands  function [out1,out2]=name(in1,in2)  EXAMPLE  function [out1, out2] = sumprod(array) out1 = sum(array) out2 = prod(array) 11
  • 12. GUI APPLICATION  Starting new App  Home > New > App > GUIDE  Home > New > App > App Designer  GUIDE  Procedural  App Designer  Object Oriented  Both have same components 12
  • 15. CALLBACK Catchable event of Button Callback (OnClick) Create –When button is created Delete – button is delete ButtonDown KeyPress Execute when event/callback occur Jumps to that code 15
  • 16. COMPONENT INSPECTOR • Set String Property of Button • set(handles.pushbutton1,‘String',‘test'); • Get String Property of Button • get(handles.pushbutton1,‘String'); 16
  • 17. SOME USEFULTIPS  Open Dialog Box  [filename,pathname] = uigetfile('*.bmp;','Select bmp file');  Save Dialog Box  [filename, pathname] = uiputfile('*.bmp;','Save Image', filename);  sum – Add all element of matrix or vector  mean – Return mean of matrix or vector  strcat – String concatenation (+ operator for string not supported)  a(:) – Return Nx1 matrix considering a multi-dimensional. 17
  • 18. SHOWING IMAGE Add Axes component in GUI Call imshow([…]) 18