.

Matlab Interpolation

Matlab Fourier Interpolation:

y = [0 .5 1 1.5 2 1.5 1 .5 0 -.5 -1 -1.5 -2 -1.5 -1 -.5 0];
N = length(y);


L = 5;
M = N*L;
x = 0:L:L*N-1;
xi = 0:M-1;
yi = interpft(y,M);
plot(x,y,'o',xi,yi,'*')
legend('Original data','Interpolated data')

 

 

03-09-2013 12-58-32

What's your thoughts on this?

*

Protected by WP Anti Spam