Professional Documents
Culture Documents
Lab Report # 1
“Matlab Review”
Task -1:
Task -2:
Task -3:
A= A=
1 2 3 1 3
4 5 6 4 6
7 8 9 7 9
This Command will eliminate the second column of
matrix.
Task -4:
>> size(A)
ans =
3 3
Task -6:
>> t = -5:.01:5;
>> y = sin (2*pi*t);
>> plot (t,y);
>> z = cos (2*pi*t);
>> plot(t,y,'r',t,z,'k')
Task -7
Stem: Figure:
Plot discrete sequence data Create figure window
Syntax: Syntax:
stem(Y) Figure
stem(X,Y) figure(Name,Value)
Hold: Subplot:
Retain current plot when adding new plots Create axes in tiled position
Syntax: Syntax:
hold on subplot(m,n,p)
hold off
hold all