Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
0 of .
Results for:
P. 1
Introduction to MATLAB - Sikander M. Mirza

# Introduction to MATLAB - Sikander M. Mirza

Ratings: (0)|Views: 651|Likes:
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.

### Availability:

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
..............................................................................................................................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