Professional Documents
Culture Documents
x=[0:0.1:2*pi]
x=
Columns 1 through 9
Columns 10 through 18
Columns 19 through 27
Columns 28 through 36
Columns 37 through 45
Columns 46 through 54
Columns 55 through 63
>> y=sin(x)
y=
Columns 1 through 9
Columns 10 through 18
Columns 19 through 27
Columns 28 through 36
Columns 46 through 54
Columns 55 through 63
>> z=exp(x)
z=
Columns 1 through 9
Columns 10 through 18
Columns 19 through 27
Columns 28 through 36
Columns 37 through 45
Columns 46 through 54
Columns 55 through 63
>> f=log(x)
f=
Columns 1 through 9
Columns 19 through 27
Columns 28 through 36
Columns 37 through 45
Columns 46 through 54
Columns 55 through 63
>> h=tan(x)
h=
Columns 1 through 9
Columns 10 through 18
Columns 19 through 27
Columns 28 through 36
Columns 37 through 45
Columns 46 through 54
>> plot(x,y)
>> subplot(4,1,1),plot(x,y)
>> subplot(4,1,2),plot(x,z)
>> subplot(4,1,3),plot(x,f)
>> subplot(4,1,4),plot(x,h)
-1
0 1 2 3 4 5 6 7
500
0
0 1 2 3 4 5 6 7
5
-5
0 1 2 3 4 5 6 7
100
-100
0 1 2 3 4 5 6 7