1. Use MATLAB to compute the DFT { d0 , d1 , d2 , d3 , d4 , d5 , d6 , d7 } for the following
data and plot the data
y0 = 0.324
y1 = 0.456
y2 = 0.112
y3 = 0.202
y4 = 0.654
y5 = 0.234
y6 = 0.678
y7 = 0.867
2. Plot the trigonometric polynomial tn(x).
=================================
for the 1Q: I have this so far.
so far. i have this:
y=[0.324 .456 .112 -0.202 -.654 .234 .678 .867];
x=[0, pi/4, pi/2, 3*pi/4, pi, 5*pi/4, 3*pi/2, 7*pi/4]
plot (x,y)
Is that right?
But for the 2, I have no idea how to get started with the MATLAB. I googled it, but no useful info is found.
Please someone help me. Thanks a lot.