SlideShare a Scribd company logo
1 of 27
Download to read offline
PREPARED BY
NAME: DHARMESH TANK
MEMBERSHIP NO: 197445
STREAM: AMIETE-CS
SEMINAR CODE : AC-70
SUBMITTED TO,
INSTITUTE OF ELECTRONICS AND
TELECOMMUNICATION ENGINEER,
AHMEDABAD 8/7/2011
oUTLINE
HISTORY OF MATLAB
STRUCTURE OF MATLAB
MATLAB WINDOW
COMPARISION OF MATLAB
MATLAB PROGRAMMING
APPLICATIONS
ADVANTAGES & DISADVANTAGES
MATLAB IN TODAY
HISTORY OF MATLAB
Engineering and scientific application involve lots of
“Numbering Crunching”.
Such crunching generated some problems:-
 Loss of precision and inaccurate results.
 Underflow, overflow and didn’t recognize degeneracy.
 Insufficient coding of algorithm.
 Programming errors.
The U.S. Govt. recognized these insufficient problems and
they commissioned “Numerical Analysis” to write good
quality of algorithm for common tasks.
Continue.….
Make the results freely available as "libraries" of
subroutines than anyone can use in their programs.
Numerical analysis is based on numerical libraries:
1. LINPACK (Linear Algebra/LAPACK)
2. EISPACK (Eigen values & Eigen vectors)
 CLEVE MOLOER, mathematician, C.S. Professor, and
co-author of LINPACK & EISPACK, thought this is still
too much work “write FORTRAN command, debug,
compile, run.....”.
He wanted to give students easy access to these
libraries.
INVENTION OF MATLAB
Then in 1970 Mr. MOLOER wrote MATLAB, which is
referred as “MATrix LABoratory”.
 It’s provides interactive environment, easy input-
output, operation on whole vectors or matrix at once.
Matlab has the ability:-
 Variable management
 Data import and export
 Calculation based on matrix
 Generates plots and graphs
Continue….
These qualities made it’s popularity through mouth
publication.
JACK LITTLE, an engineer recognize its commercial
potential and joined with MOLOER & his friend
STEVE BANGERT rewrote the MATLAB in C language
with “M-FILES”(stored programs).
They established “MATHWORKS” company on DEC 7
1984 at Natick, Massachusetts, United States.
The “MATHWORKS” is now responsible for
development, sale, and support for MATLAB.
WHAT IS MATLAB ?
MATLAB is a fourth generation programming
language which provide numerical computing
environment, data visualization, data analysis and
interactive algorithm development feature.
MATLAB is a simple programming language with its
own extensive library of mathematical (M-files)and
graphical subroutines.
MATLAB is a software program that allows you to do
data manipulation and visualization, calculations,
math and programming. It can be used to do very
simple as well as very sophisticated tasks.
FEATURES OF MATLAB
High level language for technical computing.
Development environment for manage code, files ,
data visualization.
Mathematical function for linear algebra, statistics,
Fourier analysis.
Functions for integrating MATLAB based algorithms
with external applications and languages, such as C,
C++, Fortran,Java etc.
Use of toolboxes extend the MATLAB environment
to solve particular class of application problem.
STRUCTURE OF MATLAB
SERIES OF
MATLAB
COMMAND
(SCRIPT
FILE)
MATLAB
M FILE MAT FILE
COMMAND
LINE
FUNCATION
DATA
STORAGE/
LOADING
COMMAND
EXECUTION
LIKE DOS
WINDOW
INPUT
&
OUTPUT
CAPABILITY
Files that contain computer code known as M FILE.
It have two types : 1)script file 2)function file
1) Script file: It don’t take i/p arguments or return o/p
arguments.
2) Function file: whether this file take i/p arguments or
return o/p arguments.
 *.m is the extension of M files.
MAT FILE (*.mat) is created by MATLAB with save
and read with load.
MEX FILE(*.mex) MATLAB callable codes compiled
from other language.
Continue….
Command Windows: Where all commands and
programs are run. Write the command or program
name and hit Enter.
Command History: Shows the last commands
run on the Command Windows. A command can
be recovered clicking twice.
Current directory: Shows the directory where
work will be done.
Workspace: To see the variables in use and their
dimensions (if working with matrices)
BASIC ELEMENTS OF MATLAB
MATLAB window
COMMAND
WINDOW
COMMAND
HISTORY
CURRENT
DIRECTORY &
WORKSPACE
FORTRAN C MATLAB
REQUIRED DATATYPE
(REAL,INTEGER,
CHARACTER)
REQUIRED DATATYPES
(double, int, char)
No data declaration
required
! Comments % Comments /* Comments */
DO WHILE (a.EQ.0)
…….
ENDDO
While (a==0
{……;
}
While a==0
………
End
READ *,a scanf a=input(‘a :’)
WRITE printf fprintf
f 77 code.f cc code.c Interpreted
MATLAB PROGRAMMING
 There are no variable declaration necessary to perform
operation.
 MATLAB use control flow:-
 The for loop:-
syntax: for start : increment : end
command
end
 The while loop:-
syntax: while expression
statements
end
 If-else-end:-
syntax: if expression
commands(evaluate if exp. Is true)
else
commands(evaluate if exp. Is false)
end
 Switch case:-
syntax: switch (expression)
case value 1(execute if exp. Evaluate case 1)
commands
case value 2(execute if exp. Evaluate case 2)
commands
.
.
otherwise
statements
end
regular & Logical expression
A logical array of 1 (true) and 0 (false) values is returned
as a result of applying logical operators to arrays;
Example :a = [4 0 -2 7 0]
1) a > 0 (Greater than)
ans =1 0 0 1 0
2) a == 7 (Equal to)
ans =0 0 0 1 0
3) a < 0 (Less than)
ans =0 0 1 0 0
4) a ~= 0 (Not equal to)
ans =1 0 1 1 0
5) (a >= 0) && (a <= 4) (Logical AND)
ans =1 1 0 0 1
6)(a < 0) | (a > 4) (Logical OR)
ans =0 0 1 1 0
7)~((a < 0) | (a > 4)) (Logical NOT)
ans =1 1 0 0 1
Matrix manipulation
 A =[1 2 3 4 ; 5 6 7 8]
A= 1 2 3 4
5 6 7 8
 An empty array
A = [ ]
 A = 1:5
A =1 2 3 4 5
 A = 1:2:5
A =1 3 5
 A = 10:-2:1
A=10 8 6 4 2
 A = ones(1,5)
A =1 1 1 1 1
To create a identity
matrix:
eye(3)
ans =
1 0 0
0 1 0
0 0 1
Continue…
 A(:) (Convert matrix to column vector)
ans = 1
5
3
7
A = A(:)' (Convert matrix to row vector)
ans = 1 5 3 7
 A = 1 2 3 4 5
sum(A) (Array summation)
ans =15
Eg: A = 1 2 3 4 5
cumsum(A) (Cumulative summation)
ans = 1 3 6 10 15
Eg: A = 1 3 4
5 7 8
sum(A) (Simple summation)
ans = 6 10 12
sum(A,2) (Sum along rows)
ans = 8
20
sum(A,1) (Sum along columns)
ans = 6 10 12
sum(sum(A)) (Sum entire matrix)
ans =28
EXAMPLE: Plot the function sin(x) between
0≤x≤4π
Create an x-array of 100 samples between 0 and 4π.
Calculate sin(.) of the x-array
Plot the y-array
>>x=linspace(0,4*pi,100);
>>y=sin(x);
>>plot(y) 0 10 20 30 40 50 60 70 80 90 100
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
1. help / lists all operators and special characters, along
with their descriptions.
2. help functionname displays a brief description and the
syntax for functionname in the Command Window.
3. help methodname displays help for the method
methodname. You may need to qualify methodname
with its class.
4. help classname displays help for the class classname.
You may need to qualify classname with its package.
etc..
Useful command
>>help command
Application of matlab
Control system design and Analysis.
Digital processing
Image & video processing and Computer vision
Computational Biology
Computational Finance
Mathematical Concepts(Magic square) and
Theory(Fibonacci series etc.)
Cryptography
Communication system
Advantage of matlab
MATLAB is provide its user accurate solution
of the problems & produce code easily.
MATLAB code is optimized to be quick when
performing matrix operation.
MATLAB is interpreted language, errors are
easier to fix.
Give visualize results without the need for
complicated and time consuming
programming.
Inexpensive software.
WEAKNESS OF MATLAB
MATLAB is not a general purpose programming
language.
MATLAB is interpreted language, make it some part
slower then compiled language such C++
MATLAB is designed for scientific computation so it’s
not suitable for some thing like(parsing text)
Matlab Today
Used to programs microprocessor and controller
A standard tool in both professional and academic use
"Toolboxes" providing functions for many applications:
 control systems
 identification
 bio-informatics
 statistics and time-series analysis
Can do symbolic mathematics, too.
Simulink: GUI based simulation tool
THANK YOU…..

More Related Content

What's hot

MATLAB Basics-Part1
MATLAB Basics-Part1MATLAB Basics-Part1
MATLAB Basics-Part1Elaf A.Saeed
 
Matlab (Presentation on MATLAB)
Matlab (Presentation on MATLAB)Matlab (Presentation on MATLAB)
Matlab (Presentation on MATLAB)Chetan Allapur
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLABAshish Meshram
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introductionAmeen San
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabSantosh V
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)Memo Love
 
Matlab simulink introduction
Matlab simulink introductionMatlab simulink introduction
Matlab simulink introductionAmeen San
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab IntroductionDaniel Moore
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingDr. Manjunatha. P
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLABRavikiran A
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabMohan Raj
 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)Ravikiran A
 

What's hot (20)

MATLAB Basics-Part1
MATLAB Basics-Part1MATLAB Basics-Part1
MATLAB Basics-Part1
 
Matlab (Presentation on MATLAB)
Matlab (Presentation on MATLAB)Matlab (Presentation on MATLAB)
Matlab (Presentation on MATLAB)
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Matlab ppt
Matlab pptMatlab ppt
Matlab ppt
 
Fundamentals of matlab
Fundamentals of matlabFundamentals of matlab
Fundamentals of matlab
 
DSP lab manual
DSP lab manualDSP lab manual
DSP lab manual
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Matlab simulink introduction
Matlab simulink introductionMatlab simulink introduction
Matlab simulink introduction
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processing
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Matlab Basic Tutorial
Matlab Basic TutorialMatlab Basic Tutorial
Matlab Basic Tutorial
 
What is matlab
What is matlabWhat is matlab
What is matlab
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
 

Similar to Seminar on MATLAB

Similar to Seminar on MATLAB (20)

Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
Dsp file
Dsp fileDsp file
Dsp file
 
Matlab Manual
Matlab ManualMatlab Manual
Matlab Manual
 
Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4
 
Kevin merchantss
Kevin merchantssKevin merchantss
Kevin merchantss
 
KEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENTKEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENT
 
Signals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 BatchSignals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 Batch
 
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulinkMATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
MatlabIntro.ppt
MatlabIntro.pptMatlabIntro.ppt
MatlabIntro.ppt
 
MatlabIntro.ppt
MatlabIntro.pptMatlabIntro.ppt
MatlabIntro.ppt
 
MatlabIntro.ppt
MatlabIntro.pptMatlabIntro.ppt
MatlabIntro.ppt
 
Matlab intro
Matlab introMatlab intro
Matlab intro
 
MatlabIntro.ppt
MatlabIntro.pptMatlabIntro.ppt
MatlabIntro.ppt
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
MATLAB guide
MATLAB guideMATLAB guide
MATLAB guide
 
DSP Mat Lab
DSP Mat LabDSP Mat Lab
DSP Mat Lab
 
A complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projectsA complete introduction on matlab and matlab's projects
A complete introduction on matlab and matlab's projects
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 

More from Dharmesh Tank

Basic of Python- Hands on Session
Basic of Python- Hands on SessionBasic of Python- Hands on Session
Basic of Python- Hands on SessionDharmesh Tank
 
Goal Recognition in Soccer Match
Goal Recognition in Soccer MatchGoal Recognition in Soccer Match
Goal Recognition in Soccer MatchDharmesh Tank
 
Face recognization using artificial nerual network
Face recognization using artificial nerual networkFace recognization using artificial nerual network
Face recognization using artificial nerual networkDharmesh Tank
 
Graph problem & lp formulation
Graph problem & lp formulationGraph problem & lp formulation
Graph problem & lp formulationDharmesh Tank
 
FIne Grain Multithreading
FIne Grain MultithreadingFIne Grain Multithreading
FIne Grain MultithreadingDharmesh Tank
 

More from Dharmesh Tank (6)

Basic of Python- Hands on Session
Basic of Python- Hands on SessionBasic of Python- Hands on Session
Basic of Python- Hands on Session
 
Goal Recognition in Soccer Match
Goal Recognition in Soccer MatchGoal Recognition in Soccer Match
Goal Recognition in Soccer Match
 
Face recognization using artificial nerual network
Face recognization using artificial nerual networkFace recognization using artificial nerual network
Face recognization using artificial nerual network
 
Graph problem & lp formulation
Graph problem & lp formulationGraph problem & lp formulation
Graph problem & lp formulation
 
A Big Data Concept
A Big Data ConceptA Big Data Concept
A Big Data Concept
 
FIne Grain Multithreading
FIne Grain MultithreadingFIne Grain Multithreading
FIne Grain Multithreading
 

Recently uploaded

Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Sumanth A
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfBalamuruganV28
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labsamber724300
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmDeepika Walanjkar
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxTriangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书rnrncn29
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 

Recently uploaded (20)

Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labs
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptxTriangulation survey (Basic Mine Surveying)_MI10412MI.pptx
Triangulation survey (Basic Mine Surveying)_MI10412MI.pptx
 
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 

Seminar on MATLAB

  • 1. PREPARED BY NAME: DHARMESH TANK MEMBERSHIP NO: 197445 STREAM: AMIETE-CS SEMINAR CODE : AC-70 SUBMITTED TO, INSTITUTE OF ELECTRONICS AND TELECOMMUNICATION ENGINEER, AHMEDABAD 8/7/2011
  • 2. oUTLINE HISTORY OF MATLAB STRUCTURE OF MATLAB MATLAB WINDOW COMPARISION OF MATLAB MATLAB PROGRAMMING APPLICATIONS ADVANTAGES & DISADVANTAGES MATLAB IN TODAY
  • 3. HISTORY OF MATLAB Engineering and scientific application involve lots of “Numbering Crunching”. Such crunching generated some problems:-  Loss of precision and inaccurate results.  Underflow, overflow and didn’t recognize degeneracy.  Insufficient coding of algorithm.  Programming errors. The U.S. Govt. recognized these insufficient problems and they commissioned “Numerical Analysis” to write good quality of algorithm for common tasks.
  • 4. Continue.…. Make the results freely available as "libraries" of subroutines than anyone can use in their programs. Numerical analysis is based on numerical libraries: 1. LINPACK (Linear Algebra/LAPACK) 2. EISPACK (Eigen values & Eigen vectors)  CLEVE MOLOER, mathematician, C.S. Professor, and co-author of LINPACK & EISPACK, thought this is still too much work “write FORTRAN command, debug, compile, run.....”. He wanted to give students easy access to these libraries.
  • 5. INVENTION OF MATLAB Then in 1970 Mr. MOLOER wrote MATLAB, which is referred as “MATrix LABoratory”.  It’s provides interactive environment, easy input- output, operation on whole vectors or matrix at once. Matlab has the ability:-  Variable management  Data import and export  Calculation based on matrix  Generates plots and graphs
  • 6. Continue…. These qualities made it’s popularity through mouth publication. JACK LITTLE, an engineer recognize its commercial potential and joined with MOLOER & his friend STEVE BANGERT rewrote the MATLAB in C language with “M-FILES”(stored programs). They established “MATHWORKS” company on DEC 7 1984 at Natick, Massachusetts, United States. The “MATHWORKS” is now responsible for development, sale, and support for MATLAB.
  • 7. WHAT IS MATLAB ? MATLAB is a fourth generation programming language which provide numerical computing environment, data visualization, data analysis and interactive algorithm development feature. MATLAB is a simple programming language with its own extensive library of mathematical (M-files)and graphical subroutines. MATLAB is a software program that allows you to do data manipulation and visualization, calculations, math and programming. It can be used to do very simple as well as very sophisticated tasks.
  • 8. FEATURES OF MATLAB High level language for technical computing. Development environment for manage code, files , data visualization. Mathematical function for linear algebra, statistics, Fourier analysis. Functions for integrating MATLAB based algorithms with external applications and languages, such as C, C++, Fortran,Java etc. Use of toolboxes extend the MATLAB environment to solve particular class of application problem.
  • 9. STRUCTURE OF MATLAB SERIES OF MATLAB COMMAND (SCRIPT FILE) MATLAB M FILE MAT FILE COMMAND LINE FUNCATION DATA STORAGE/ LOADING COMMAND EXECUTION LIKE DOS WINDOW INPUT & OUTPUT CAPABILITY
  • 10. Files that contain computer code known as M FILE. It have two types : 1)script file 2)function file 1) Script file: It don’t take i/p arguments or return o/p arguments. 2) Function file: whether this file take i/p arguments or return o/p arguments.  *.m is the extension of M files. MAT FILE (*.mat) is created by MATLAB with save and read with load. MEX FILE(*.mex) MATLAB callable codes compiled from other language. Continue….
  • 11. Command Windows: Where all commands and programs are run. Write the command or program name and hit Enter. Command History: Shows the last commands run on the Command Windows. A command can be recovered clicking twice. Current directory: Shows the directory where work will be done. Workspace: To see the variables in use and their dimensions (if working with matrices) BASIC ELEMENTS OF MATLAB
  • 13. FORTRAN C MATLAB REQUIRED DATATYPE (REAL,INTEGER, CHARACTER) REQUIRED DATATYPES (double, int, char) No data declaration required ! Comments % Comments /* Comments */ DO WHILE (a.EQ.0) ……. ENDDO While (a==0 {……; } While a==0 ……… End READ *,a scanf a=input(‘a :’) WRITE printf fprintf f 77 code.f cc code.c Interpreted
  • 14. MATLAB PROGRAMMING  There are no variable declaration necessary to perform operation.  MATLAB use control flow:-  The for loop:- syntax: for start : increment : end command end  The while loop:- syntax: while expression statements end
  • 15.  If-else-end:- syntax: if expression commands(evaluate if exp. Is true) else commands(evaluate if exp. Is false) end  Switch case:- syntax: switch (expression) case value 1(execute if exp. Evaluate case 1) commands case value 2(execute if exp. Evaluate case 2) commands . . otherwise statements end
  • 16. regular & Logical expression A logical array of 1 (true) and 0 (false) values is returned as a result of applying logical operators to arrays; Example :a = [4 0 -2 7 0] 1) a > 0 (Greater than) ans =1 0 0 1 0 2) a == 7 (Equal to) ans =0 0 0 1 0 3) a < 0 (Less than) ans =0 0 1 0 0
  • 17. 4) a ~= 0 (Not equal to) ans =1 0 1 1 0 5) (a >= 0) && (a <= 4) (Logical AND) ans =1 1 0 0 1 6)(a < 0) | (a > 4) (Logical OR) ans =0 0 1 1 0 7)~((a < 0) | (a > 4)) (Logical NOT) ans =1 1 0 0 1
  • 18. Matrix manipulation  A =[1 2 3 4 ; 5 6 7 8] A= 1 2 3 4 5 6 7 8  An empty array A = [ ]  A = 1:5 A =1 2 3 4 5  A = 1:2:5 A =1 3 5  A = 10:-2:1 A=10 8 6 4 2  A = ones(1,5) A =1 1 1 1 1 To create a identity matrix: eye(3) ans = 1 0 0 0 1 0 0 0 1
  • 19. Continue…  A(:) (Convert matrix to column vector) ans = 1 5 3 7 A = A(:)' (Convert matrix to row vector) ans = 1 5 3 7  A = 1 2 3 4 5 sum(A) (Array summation) ans =15
  • 20. Eg: A = 1 2 3 4 5 cumsum(A) (Cumulative summation) ans = 1 3 6 10 15 Eg: A = 1 3 4 5 7 8 sum(A) (Simple summation) ans = 6 10 12 sum(A,2) (Sum along rows) ans = 8 20 sum(A,1) (Sum along columns) ans = 6 10 12 sum(sum(A)) (Sum entire matrix) ans =28
  • 21. EXAMPLE: Plot the function sin(x) between 0≤x≤4π Create an x-array of 100 samples between 0 and 4π. Calculate sin(.) of the x-array Plot the y-array >>x=linspace(0,4*pi,100); >>y=sin(x); >>plot(y) 0 10 20 30 40 50 60 70 80 90 100 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
  • 22. 1. help / lists all operators and special characters, along with their descriptions. 2. help functionname displays a brief description and the syntax for functionname in the Command Window. 3. help methodname displays help for the method methodname. You may need to qualify methodname with its class. 4. help classname displays help for the class classname. You may need to qualify classname with its package. etc.. Useful command >>help command
  • 23. Application of matlab Control system design and Analysis. Digital processing Image & video processing and Computer vision Computational Biology Computational Finance Mathematical Concepts(Magic square) and Theory(Fibonacci series etc.) Cryptography Communication system
  • 24. Advantage of matlab MATLAB is provide its user accurate solution of the problems & produce code easily. MATLAB code is optimized to be quick when performing matrix operation. MATLAB is interpreted language, errors are easier to fix. Give visualize results without the need for complicated and time consuming programming. Inexpensive software.
  • 25. WEAKNESS OF MATLAB MATLAB is not a general purpose programming language. MATLAB is interpreted language, make it some part slower then compiled language such C++ MATLAB is designed for scientific computation so it’s not suitable for some thing like(parsing text)
  • 26. Matlab Today Used to programs microprocessor and controller A standard tool in both professional and academic use "Toolboxes" providing functions for many applications:  control systems  identification  bio-informatics  statistics and time-series analysis Can do symbolic mathematics, too. Simulink: GUI based simulation tool