Upload
prem
View
215
Download
0
Embed Size (px)
Citation preview
7/31/2019 Main Matlab
1/18
7/20/2012 1
1
MATLAB
By,
Premanand P.Ghadekar
7/31/2019 Main Matlab
2/18
Outline
Syllabus
MATLAB Introduction
MATLAB Elements
Types
Help
Variables
Matrices
7/20/2012 2
7/31/2019 Main Matlab
3/18
Syllabus
Syllabus
Lesson Plan
Practical Plan
7/20/2012 3
http://localhost/var/www/apps/conversion/current/tmp/scratch30647/Matlab-PD-SYLLABUS-NEW.dochttp://localhost/var/www/apps/conversion/current/tmp/scratch30647/MATLAB%20Theory%20Course%20Lesson%20Plan-2010.dochttp://localhost/var/www/apps/conversion/current/tmp/scratch30647/MATLAB%20%20Lboratory%20Course%20%20Weekly%20Plan-2010.dochttp://localhost/var/www/apps/conversion/current/tmp/scratch30647/MATLAB%20%20Lboratory%20Course%20%20Weekly%20Plan-2010.dochttp://localhost/var/www/apps/conversion/current/tmp/scratch30647/MATLAB%20Theory%20Course%20Lesson%20Plan-2010.dochttp://localhost/var/www/apps/conversion/current/tmp/scratch30647/Matlab-PD-SYLLABUS-NEW.doc7/31/2019 Main Matlab
4/18
7/20/2012 4
INTRODUCTION
MATLAB-Matrix Laboratory.
MATLAB is a Software package for high
performance numerical computations & visualization. It provides an interactive environment with hundreds
of built-in functions for technical computation,
graphics, & animation.
7/31/2019 Main Matlab
5/18
7/20/2012 5
7/20/2012
WHY MATLAB Easy of use.
MATLAB is an interactive system whose basic data element
is an array that does not require dimensioning.
MATLAB is high performance language for technical
computing.
It provides various Toolboxes ex-DSP,IP,FUZZY Logic etc.
It also used to create GUI.
More than 500 mathematical & Engineering functions.
MATLAB code & data formats are Platform Independent.
MATLAB programs can be converted to C/C++.
7/31/2019 Main Matlab
6/18
Opening Matlab
7/20/2012 6
7/31/2019 Main Matlab
7/18
7/20/2012 77/20/2012
&
7/31/2019 Main Matlab
8/18
7/20/2012 87/20/2012
Platforms and Versions
MATLAB is platform independent.
It work on Windows platform as well as on
Unix platform.
System requirement
Pentium II or later version,Widows95, windows98 or
later version, CD-ROM, 256 MB RAM.
7/31/2019 Main Matlab
9/18
7/20/2012 97/20/2012
HELP
Online help is available.
MATLAB demos are available.
Help for program, m-file, directory name,
inbuilt function is available.
7/31/2019 Main Matlab
10/18
7/20/2012 107/20/2012
MATLAB FUNDAMENTALS
MATLAB Windows
MATLAB File types.
Creating Directory & saving files.
Notations, Syntax & Operations
Some Built-in functions
Some useful commands
7/31/2019 Main Matlab
11/18
7/20/2012 117/20/2012
MATLAB WINDOWS
Command Window-Main window, Characterized by
command prompt >>, All commands are typed in this
windows. It contains three other smaller windows.
Command History
Current Directory
Workspace Figure Window
Edit Window
7/31/2019 Main Matlab
12/18
7/20/2012 127/20/2012
MATLAB FILE TYPES
M-FilesStandard ASCII text files. There are two
types- Script files, Function file.
Mat Files-Binary Data files. Mat files are created byMATLAB when you save command.
Fig Files-Binary figure files
Mex Files-MATLAB callable Fortran & C-programs. P-file
7/31/2019 Main Matlab
13/18
Built in Functions
MATLAB
7/20/2012 13
MATLABProgramming
Language
User Written Functions
Graphics2-D3-DAnimation
Audio & Video
ComputationsLinear AlgebraData AnalysisSignal Processing
External Interface(Mex-Files)
Interface with C , Java& Fortran Programs
ToolboxesSignal Processing Image ProcessingControl System CommunicationsStatistics Optimization
Neural Networks Financial & Many More
7/31/2019 Main Matlab
14/18
7/20/2012 147/20/2012
NOTATION & SYNTAX
It is case sensitive language.
Simple arithmetic Calculations
7/31/2019 Main Matlab
15/18
7/20/2012 157/20/2012
Data Types
7/31/2019 Main Matlab
16/18
7/20/2012 167/20/2012
Variables
Have not to be previously declared
Variable names can contain up to 63
charactersVariable names must start with a letter
followed by letters, digits, and
underscores.Variable names are case sensitive
7/31/2019 Main Matlab
17/18
7/20/2012 177/20/2012
Matlab Special Variables
ans -Default variable name for results
pi -Value of
eps -Smallest incremental number inf -Infinity
NaN -Not a number e.g. 0/0
realmin -The smallest usable positive realnumber
realmax -The largest usable positive real number
7/31/2019 Main Matlab
18/18
7/20/2012 187/20/2012
Matlab Assignment & Operators