MATLAB PART 4
MATLAB
COURSE BY : PROF. HOSSEINI
PREPARED BY
S. M. RAFIGH
2011
MATLAB GRAPHICS
One of the best things about MATLAB is
interactive graphics
plot is the one you will be using most often
Many other 3D plotting functions - plot3,
mesh, surfc, e
MATLAB PART 3
MATLAB
COURSE BY : PROF. HOSSEINI
PREPARED BY
S. M. RAFIGH
2011
Binomial Distribution
n p k (1 p) nk ,
p(k ) =
k
= np
k = 0,1,., n
Bernoulli
1720
2 = np(1 p)
k=0:20;
y=binopdf(k,20,0.5);
stem(k,y)
n = 20
p = 0.5
k=0:20;
y=binocdf(k,20,0.
MATLAB PART 2
MATLAB
COURSE BY : PROF. HOSSEINI
PREPARED BY
S. M. RAFIGH
2011
Desktop Tools (Matlab v6)
Command Window
type commands
Workspace
view program variables
clear to clear
double click on a variable to see it in the Array
Editor
Command Histo
MATLAB PART 1
MATLAB
COURSE BY : PROF. HOSSEINI
PREPARED BY
S. M. RAFIGH
2011
Outline:
What is Matlab?
Matlab Screen
Variables, array, matrix, indexing
Operators (Arithmetic, relational, logical )
Display Facilities
Flow Control
Using of M-File
Writing Us