Ex 7
Ex 7
n=linspace(-30,30,30)
y=sin(((pi*n)/12).^2)
z=cos(((pi*n)/12).^2)
plot(n,y)
hold on
plot(n,z)
n =
Columns 1 through 7
Columns 8 through 14
Columns 15 through 21
Columns 22 through 28
Columns 29 through 30
27.9310 30.0000
y =
Columns 1 through 7
Columns 8 through 14
Columns 15 through 21
Columns 22 through 28
Columns 29 through 30
-0.0630 -0.9115
1
z =
Columns 1 through 7
Columns 8 through 14
Columns 15 through 21
Columns 22 through 28
Columns 29 through 30
-0.9980 0.4114
2
Published with MATLAB® R2013b