SlideShare a Scribd company logo
1 of 26
MATLAB
Mr Elaventhan.A, Project Engineer
Pantech ProEd Pvt Ltd, Trichy
Agenda:
• Introduction
• Commands
• Operators
• Functions
• GUI
• How to Generate GUI?
• TMS320C6745 Introduction
• TMS Procedure
• Demo
Introduction
 MATLAB  MATrix LABoratory
 Developed by CleveMoler in 1984 as a teaching tool
 High performance language for technical computing
 Typical uses are,
 numerical computation
 Data analysis ,plotting and visualization
 Graphical user interface building
 Algorithm development and modelling
MATLAB Desktop Tools
 Command Window
 Command History
 Workspace
 Current Directory
 Editor Window
MATLAB Desktop
General Purpose Commands
 clc , clear ,close all
 save
 who , whos
 cd , ls
 disp
 Version
 Pwd
 Floor,round,abs
 date
Clear
 clear removes items from workspace,
freeing up system memory
 Examples of syntax:
 clear
Graph Functions
 plot linear plot
 stem discrete plot
 grid add grid lines
 Xlabel add X-axis label
 Ylabel add Y-axis label
 title add graph title
 Subplot divide figure window
 Figure create new figure window
 Pause wait for user response
Arithmetic Operators
 plus - Plus +
 uplus - Unary plus +
 minus - Minus -
 uminus - Unary minus -
 mtimes - Matrix multiply *
 times - Array multiply .*
 mpower - Matrix power ^
 power - Array power .^
 mldivide - Backslash or left matrix divide 
 Mrdivide - Slash or right matrix divide /
 ldivide - Left array divide .
 rdivide - Right array divide ./
Logical Operators
 Short-circuit logical AND &&
 Short-circuit logical OR ||
 AND - Element-wise logical AND &
 OR - Element-wise logical OR |
 NOT - Logical NOT ~
 XOR - Logical EXCLUSIVE OR
 Any - True if any element of vector is nonzero
 All - True if all elements of vector are nonzero
Bitwise Operators
 bitand - Bit-wise AND.
 bitcmp - Complement bits.
 bitor - Bit-wise OR.
 bitmax - Maximum floating point integer.
 bitxor - Bit-wise XOR.
 bitset - Set bit.
 bitget - Get bit.
 bitshift - Bit-wise shift.
Relational Operator
 < Less than
 <= Less than or equal to
 > Greater than
 >= Greater than or equal to
 == Equal to
 ~= Not equal to
Matrix Creation
 When entering a matrix, separate columns by
spaces or commas; separate rows by semicolons.
For example, typing:
A = [1 2; 3 4]
results in:
A = 1 2
3 4
Elementary Matrices
 eye – Identity matrix---- x= eye(m,n).
 ones – 1’s matrix ---- y=ones(m,n);
 zeros – 0’s matrix ---- z=zeros(m,n);
 magic – generate square matrix – w= magic(4);
 rand – uniformly distributed random numbers -- q=
rand(m,n);
Save And Load The Variable
A=5;
save A A;
load A;
B=1;
C=A+B;
disp(C);
Plot
t=0:0.25:7;
y = sin(2*pi*10*t);
plot(t,y) ;
Plot
t=0:0.25:7;
y = sin(t);
plot(t,y) ;
xlabel('x axis');
ylabel('y axis');
title('Heading');
grid on;
gtext('text');
IF LOOP
a=5;
if a > 6
disp('a is greater');
else
disp('a is smaller');
end
For Loop
a=5;
for i=1:5
a=a+1
end
disp(a);
While Loop
a=5;
while a < 10
a=a+1;
end
disp(a);
GUI
• A graphical user interface (GUI) is a user
interface built with graphical objects, such as
buttons, text fields, sliders, and menus. In
general, these objects already have
meanings to most computer users.
User Interface Controls
• Push Buttons
• Toggle Buttons
• Radio Buttons
• Checkboxes
• Popup Menus
• Edit Text
• Axes
• Static Text
• Figures
GUI Window
Thank You!!
Contact Us
• Con Person:
Sowmiya.S, Event Coordinator
• Con No:
7200045955
8807058158
• Mail Id:
Trichy.DSP@pantechmail.com
Senthilmurugan.m@pantechmail.com

More Related Content

What's hot

Matrix Manipulation in Matlab
Matrix Manipulation in MatlabMatrix Manipulation in Matlab
Matrix Manipulation in MatlabMohamed Loey
 
SORTTING IN LINEAR TIME - Radix Sort
SORTTING IN LINEAR TIME - Radix SortSORTTING IN LINEAR TIME - Radix Sort
SORTTING IN LINEAR TIME - Radix SortDevanshu Taneja
 
Time series predictions using LSTMs
Time series predictions using LSTMsTime series predictions using LSTMs
Time series predictions using LSTMsSetu Chokshi
 
MATRIX HASHING WITH TWO LEVEL OF COLLISION RESOLUTION
MATRIX HASHING WITH TWO LEVEL OF COLLISION RESOLUTIONMATRIX HASHING WITH TWO LEVEL OF COLLISION RESOLUTION
MATRIX HASHING WITH TWO LEVEL OF COLLISION RESOLUTIONNvk Chaitanya
 
The dag representation of basic blocks
The dag representation of basic blocksThe dag representation of basic blocks
The dag representation of basic blocksShabeen Taj
 
IOEfficientParalleMatrixMultiplication_present
IOEfficientParalleMatrixMultiplication_presentIOEfficientParalleMatrixMultiplication_present
IOEfficientParalleMatrixMultiplication_presentShubham Joshi
 
primitive data types
 primitive data types primitive data types
primitive data typesJadavsejal
 
Value objects in JS - an ES7 work in progress
Value objects in JS - an ES7 work in progressValue objects in JS - an ES7 work in progress
Value objects in JS - an ES7 work in progressBrendan Eich
 
JS Responsibilities
JS ResponsibilitiesJS Responsibilities
JS ResponsibilitiesBrendan Eich
 
Volodymyr Lyubinets “Generative models for images”
Volodymyr Lyubinets  “Generative models for images”Volodymyr Lyubinets  “Generative models for images”
Volodymyr Lyubinets “Generative models for images”Lviv Startup Club
 

What's hot (19)

Radix sorting
Radix sortingRadix sorting
Radix sorting
 
Matrix Manipulation in Matlab
Matrix Manipulation in MatlabMatrix Manipulation in Matlab
Matrix Manipulation in Matlab
 
SORTTING IN LINEAR TIME - Radix Sort
SORTTING IN LINEAR TIME - Radix SortSORTTING IN LINEAR TIME - Radix Sort
SORTTING IN LINEAR TIME - Radix Sort
 
Time series predictions using LSTMs
Time series predictions using LSTMsTime series predictions using LSTMs
Time series predictions using LSTMs
 
Doc 20180130-wa0006
Doc 20180130-wa0006Doc 20180130-wa0006
Doc 20180130-wa0006
 
MATRIX HASHING WITH TWO LEVEL OF COLLISION RESOLUTION
MATRIX HASHING WITH TWO LEVEL OF COLLISION RESOLUTIONMATRIX HASHING WITH TWO LEVEL OF COLLISION RESOLUTION
MATRIX HASHING WITH TWO LEVEL OF COLLISION RESOLUTION
 
The dag representation of basic blocks
The dag representation of basic blocksThe dag representation of basic blocks
The dag representation of basic blocks
 
Information security Seminar #3
Information security Seminar #3 Information security Seminar #3
Information security Seminar #3
 
Radix Sort
Radix SortRadix Sort
Radix Sort
 
IOEfficientParalleMatrixMultiplication_present
IOEfficientParalleMatrixMultiplication_presentIOEfficientParalleMatrixMultiplication_present
IOEfficientParalleMatrixMultiplication_present
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Maps&hash tables
Maps&hash tablesMaps&hash tables
Maps&hash tables
 
Doc 20180130-wa0004
Doc 20180130-wa0004Doc 20180130-wa0004
Doc 20180130-wa0004
 
primitive data types
 primitive data types primitive data types
primitive data types
 
Value objects in JS - an ES7 work in progress
Value objects in JS - an ES7 work in progressValue objects in JS - an ES7 work in progress
Value objects in JS - an ES7 work in progress
 
JS Responsibilities
JS ResponsibilitiesJS Responsibilities
JS Responsibilities
 
Exp 3
Exp 3Exp 3
Exp 3
 
Volodymyr Lyubinets “Generative models for images”
Volodymyr Lyubinets  “Generative models for images”Volodymyr Lyubinets  “Generative models for images”
Volodymyr Lyubinets “Generative models for images”
 

Similar to Matlab

An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersMurshida ck
 
Basic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptxBasic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptxPremanandS3
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in spaceFaizan Shabbir
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introductionssuser2797e4
 
Introduction to Matlab - Basic Functions
Introduction to Matlab - Basic FunctionsIntroduction to Matlab - Basic Functions
Introduction to Matlab - Basic Functionsjoellivz
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to MatlabAmr Rashed
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxlekhacce
 
MATLAB for Technical Computing
MATLAB for Technical ComputingMATLAB for Technical Computing
MATLAB for Technical ComputingNaveed Rehman
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshopVinay Kumar
 
IntroductionToMathematica.pptx
IntroductionToMathematica.pptxIntroductionToMathematica.pptx
IntroductionToMathematica.pptxMuhammadImran1347
 

Similar to Matlab (20)

Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginners
 
Basic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptxBasic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptx
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Introduction to Matlab - Basic Functions
Introduction to Matlab - Basic FunctionsIntroduction to Matlab - Basic Functions
Introduction to Matlab - Basic Functions
 
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 introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Matlab1
Matlab1Matlab1
Matlab1
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
Matlab ppt
Matlab pptMatlab ppt
Matlab ppt
 
introduction to matlab.pptx
introduction to matlab.pptxintroduction to matlab.pptx
introduction to matlab.pptx
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Matlab Tutorial.ppt
Matlab Tutorial.pptMatlab Tutorial.ppt
Matlab Tutorial.ppt
 
Matlab intro
Matlab introMatlab intro
Matlab intro
 
MATLAB for Technical Computing
MATLAB for Technical ComputingMATLAB for Technical Computing
MATLAB for Technical Computing
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
 
IntroductionToMathematica.pptx
IntroductionToMathematica.pptxIntroductionToMathematica.pptx
IntroductionToMathematica.pptx
 

More from Naatchammai Ramanathan

Designing a world class clasroom by naatchammai ramanathan
Designing a world class clasroom by naatchammai ramanathanDesigning a world class clasroom by naatchammai ramanathan
Designing a world class clasroom by naatchammai ramanathanNaatchammai Ramanathan
 
Workshop for partners_on_the_reporting_process_07.03.2014
Workshop for partners_on_the_reporting_process_07.03.2014Workshop for partners_on_the_reporting_process_07.03.2014
Workshop for partners_on_the_reporting_process_07.03.2014Naatchammai Ramanathan
 
Standardised ppt on revised model gst law
Standardised ppt on revised model gst lawStandardised ppt on revised model gst law
Standardised ppt on revised model gst lawNaatchammai Ramanathan
 
Image processing-on-matlab-presentation-1
Image processing-on-matlab-presentation-1Image processing-on-matlab-presentation-1
Image processing-on-matlab-presentation-1Naatchammai Ramanathan
 
Deep sky astrophotography by naatchammai rm
Deep sky astrophotography by naatchammai rmDeep sky astrophotography by naatchammai rm
Deep sky astrophotography by naatchammai rmNaatchammai Ramanathan
 
A smart baby watch for monitoring sudden infant review 2 (1)
A smart baby watch for  monitoring sudden infant review 2 (1)A smart baby watch for  monitoring sudden infant review 2 (1)
A smart baby watch for monitoring sudden infant review 2 (1)Naatchammai Ramanathan
 

More from Naatchammai Ramanathan (20)

Why english club
Why english club Why english club
Why english club
 
Spoken bbc
Spoken bbcSpoken bbc
Spoken bbc
 
Non-material heritage
Non-material heritageNon-material heritage
Non-material heritage
 
Pronunciations of different words
Pronunciations of different wordsPronunciations of different words
Pronunciations of different words
 
Overdose of effective vocabs
Overdose of effective vocabsOverdose of effective vocabs
Overdose of effective vocabs
 
Designing a world class clasroom by naatchammai ramanathan
Designing a world class clasroom by naatchammai ramanathanDesigning a world class clasroom by naatchammai ramanathan
Designing a world class clasroom by naatchammai ramanathan
 
Mail merge
Mail mergeMail merge
Mail merge
 
Uniform assessment system
Uniform assessment system Uniform assessment system
Uniform assessment system
 
annual day script of a school 2019
annual day script of a school 2019annual day script of a school 2019
annual day script of a school 2019
 
Workshop for partners_on_the_reporting_process_07.03.2014
Workshop for partners_on_the_reporting_process_07.03.2014Workshop for partners_on_the_reporting_process_07.03.2014
Workshop for partners_on_the_reporting_process_07.03.2014
 
ad
adad
ad
 
Standardised ppt on revised model gst law
Standardised ppt on revised model gst lawStandardised ppt on revised model gst law
Standardised ppt on revised model gst law
 
manet
manet manet
manet
 
Personality development for english
Personality development for englishPersonality development for english
Personality development for english
 
Lifi
Lifi Lifi
Lifi
 
Image processing-on-matlab-presentation-1
Image processing-on-matlab-presentation-1Image processing-on-matlab-presentation-1
Image processing-on-matlab-presentation-1
 
Gst ppt-taxguru
Gst ppt-taxguruGst ppt-taxguru
Gst ppt-taxguru
 
Gst personal
Gst   personalGst   personal
Gst personal
 
Deep sky astrophotography by naatchammai rm
Deep sky astrophotography by naatchammai rmDeep sky astrophotography by naatchammai rm
Deep sky astrophotography by naatchammai rm
 
A smart baby watch for monitoring sudden infant review 2 (1)
A smart baby watch for  monitoring sudden infant review 2 (1)A smart baby watch for  monitoring sudden infant review 2 (1)
A smart baby watch for monitoring sudden infant review 2 (1)
 

Recently uploaded

ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Matlab

  • 1. MATLAB Mr Elaventhan.A, Project Engineer Pantech ProEd Pvt Ltd, Trichy
  • 2. Agenda: • Introduction • Commands • Operators • Functions • GUI • How to Generate GUI? • TMS320C6745 Introduction • TMS Procedure • Demo
  • 3. Introduction  MATLAB  MATrix LABoratory  Developed by CleveMoler in 1984 as a teaching tool  High performance language for technical computing  Typical uses are,  numerical computation  Data analysis ,plotting and visualization  Graphical user interface building  Algorithm development and modelling
  • 4. MATLAB Desktop Tools  Command Window  Command History  Workspace  Current Directory  Editor Window
  • 6. General Purpose Commands  clc , clear ,close all  save  who , whos  cd , ls  disp  Version  Pwd  Floor,round,abs  date
  • 7. Clear  clear removes items from workspace, freeing up system memory  Examples of syntax:  clear
  • 8. Graph Functions  plot linear plot  stem discrete plot  grid add grid lines  Xlabel add X-axis label  Ylabel add Y-axis label  title add graph title  Subplot divide figure window  Figure create new figure window  Pause wait for user response
  • 9. Arithmetic Operators  plus - Plus +  uplus - Unary plus +  minus - Minus -  uminus - Unary minus -  mtimes - Matrix multiply *  times - Array multiply .*  mpower - Matrix power ^  power - Array power .^  mldivide - Backslash or left matrix divide  Mrdivide - Slash or right matrix divide /  ldivide - Left array divide .  rdivide - Right array divide ./
  • 10. Logical Operators  Short-circuit logical AND &&  Short-circuit logical OR ||  AND - Element-wise logical AND &  OR - Element-wise logical OR |  NOT - Logical NOT ~  XOR - Logical EXCLUSIVE OR  Any - True if any element of vector is nonzero  All - True if all elements of vector are nonzero
  • 11. Bitwise Operators  bitand - Bit-wise AND.  bitcmp - Complement bits.  bitor - Bit-wise OR.  bitmax - Maximum floating point integer.  bitxor - Bit-wise XOR.  bitset - Set bit.  bitget - Get bit.  bitshift - Bit-wise shift.
  • 12. Relational Operator  < Less than  <= Less than or equal to  > Greater than  >= Greater than or equal to  == Equal to  ~= Not equal to
  • 13. Matrix Creation  When entering a matrix, separate columns by spaces or commas; separate rows by semicolons. For example, typing: A = [1 2; 3 4] results in: A = 1 2 3 4
  • 14. Elementary Matrices  eye – Identity matrix---- x= eye(m,n).  ones – 1’s matrix ---- y=ones(m,n);  zeros – 0’s matrix ---- z=zeros(m,n);  magic – generate square matrix – w= magic(4);  rand – uniformly distributed random numbers -- q= rand(m,n);
  • 15. Save And Load The Variable A=5; save A A; load A; B=1; C=A+B; disp(C);
  • 17. Plot t=0:0.25:7; y = sin(t); plot(t,y) ; xlabel('x axis'); ylabel('y axis'); title('Heading'); grid on; gtext('text');
  • 18. IF LOOP a=5; if a > 6 disp('a is greater'); else disp('a is smaller'); end
  • 20. While Loop a=5; while a < 10 a=a+1; end disp(a);
  • 21. GUI • A graphical user interface (GUI) is a user interface built with graphical objects, such as buttons, text fields, sliders, and menus. In general, these objects already have meanings to most computer users.
  • 22. User Interface Controls • Push Buttons • Toggle Buttons • Radio Buttons • Checkboxes • Popup Menus • Edit Text • Axes • Static Text • Figures
  • 25.
  • 26. Contact Us • Con Person: Sowmiya.S, Event Coordinator • Con No: 7200045955 8807058158 • Mail Id: Trichy.DSP@pantechmail.com Senthilmurugan.m@pantechmail.com