Mathematics - The MathWorks - #301

/ 316


catalogue search
P. 301
P. 302
P. 303
P. 304
P. 305
P. 306
P. 307
P. 308
P. 309
P. 310
P. 311
P. 312
P. 313
P. 314
P. 315
P. 316


See other catalogues for The MathWorks

Text version of the page
Fast Fourier Transform (FFT)
a0 = d(1)/m;
an = 2*real(d(2:M))/m;
a6 = d(M+1)/m;
bn = -2*imag(d(2:M))/m;
Plot the interpolant with the data: hold on
x = 0:0.01:360; n = 1:length(an);
y = a0 + an*cos(2*pi*n'*x/360) ...
+ bn*sin(2*pi*n'*x/360) ... + a6*cos(2*pi*6*x/360);
plot(x,y,'Linewidth',2)
legend('Data','DFT Interpolant','Location','NW')
7-21

pageCatalog pdf di En 2012-06-22-01