Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
P. 1
Introduction to MATLAB - Sikander M. Mirza

Introduction to MATLAB - Sikander M. Mirza

Ratings: (0)|Views: 648 |Likes:
Published by Nasir Jumani
This is an introductory Matlab how to guide by a Pakistani professor. Certainly the English is not so good, but it teach you the basics effectively. Overall, a nice beginner's tutorial.
This is an introductory Matlab how to guide by a Pakistani professor. Certainly the English is not so good, but it teach you the basics effectively. Overall, a nice beginner's tutorial.

More info:

Published by: Nasir Jumani on Jul 20, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/25/2012

pdf

text

original

 
..........
..........
 
Beginner’s Resource
Introduction to Matlab
 ® 
 
 By Dr. Sikander M. Mirza
Department of Physics and Applied MathematicsPakistan Institute of Engineering and Applied SciencesNilore, Islamabad 45650, Pakistan
 
......
Introduction to Matlab
2
 
aabbeeoo f  f oonneenn s s 
GENERAL FEATURES..............................................................................................................................4
 
S
TARTUP
....................................................................................................................................................4
 
S
IMPLE
C
ALCULATIONS
..............................................................................................................................5
 
 N
UMBERS AND
S
TORAGE
............................................................................................................................6
 
V
ARIABLE
 N
AMES
......................................................................................................................................6
 
C
ASE
S
ENSITIVITY
......................................................................................................................................7
 
FUNCTIONS................................................................................................................................................7
 
T
RIGONOMETRIC
F
UNCTIONS
.....................................................................................................................7
 
S
OME
E
LEMENTARY
F
UNCTIONS
................................................................................................................7
 
VECTORS.....................................................................................................................................................9
 
T
HE
OW
V
ECTORS
....................................................................................................................................9
 
T
HE
C
OLON
 N
OTATION
..............................................................................................................................9
 
S
ECTIONS OF A
V
ECTOR 
...........................................................................................................................10
 
C
OLUMN
V
ECTORS
...................................................................................................................................11
 
T
RANSPOSE
..............................................................................................................................................11
 
D
IARY AND
S
ESSION
.................................................................................................................................12
 
E
LEMENTARY
P
LOTS AND
G
RAPHS
...........................................................................................................13
 
M
ULTIPLOTS
.............................................................................................................................................15
 
S
UBPLOTS
.................................................................................................................................................16
 
A
XES
C
ONTROL
........................................................................................................................................17
 
S
CRIPTS
....................................................................................................................................................17
 
W
ORKING WITH
V
ECTORS AND
M
ATRICES
...............................................................................................20
 
H
ADAMARD PRODUCT
..............................................................................................................................22
 
T
ABULATION OF
F
UNCTIONS
....................................................................................................................22
 
WORKING WITH MATRICES...............................................................................................................24
 
D
EFINING
M
ATRICES
................................................................................................................................24
 
S
IZE OF
M
ATRICES
...................................................................................................................................25
 
T
HE
I
DENTITY
M
ATRIX
............................................................................................................................26
 
T
RANSPOSE
..............................................................................................................................................26
 
D
IAGONAL
M
ATRIX
..................................................................................................................................27
 
S
PY
F
UNCTION
.........................................................................................................................................27
 
S
ECTIONS OF
M
ATRICES
...........................................................................................................................28
 
P
RODUCT OF
M
ATRICES
...........................................................................................................................29
 
MATLAB PROGRAMMING...................................................................................................................29
 
F
OR 
-L
OOPS
...............................................................................................................................................29
 
L
OGICAL
E
XPRESSIONS
............................................................................................................................31
 
W
HILE LOOP
.............................................................................................................................................32
 
C
ONDITIONAL
P
ROGRAMMING
.................................................................................................................33
 
F
UNCTION M
-S
CRIPTS
...............................................................................................................................34
 
ETURN
S
TATEMENT
................................................................................................................................36
 
ECURSIVE
P
ROGRAMMING
.....................................................................................................................36
 
 
Introduction to Matlab
3
 
FUNCTION VISUALIZATION...............................................................................................................37
 
S
EMILOG
P
LOT
.........................................................................................................................................37
 
P
OLAR PLOT
.............................................................................................................................................38
 
M
ESH
P
LOT
..............................................................................................................................................39
 
E
LAPSED
T
IME
..........................................................................................................................................42
 

Activity (17)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
cuterose95 liked this
nysret liked this
gopi liked this
raf051047 liked this
lakshmibhargavi liked this
Ali Asghar liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->