rntsay
Member level 4
![Member level 4](/styles/images/ranks/dlevel4.gif)
matlab derivative
little matlab demo of fractional derivative..enjoy
N=256;
t=pi*[-N:N-1]/N;
f=exp(-(t.^2)/(0.5));
f=f-mean(f);
F=fftshift(fft(f));
figure(1);clf;set(gcf,'Renderer','zbuffer');
for n=0:0.1:4
Fn=(j*t).^n .* F;
fn=ifft(fftshift(Fn));fn=fn/max(abs(fn));plot(real(fn));
text(20,1.0,sprintf('%0.2f',n));
grid on;axis( [0 2*N -1.2 1.2]);
axis square;drawnow;
end;
creatively acquired from :
https://www.cs.dartmouth.edu/~farid/research/fracderiv.html
little matlab demo of fractional derivative..enjoy
N=256;
t=pi*[-N:N-1]/N;
f=exp(-(t.^2)/(0.5));
f=f-mean(f);
F=fftshift(fft(f));
figure(1);clf;set(gcf,'Renderer','zbuffer');
for n=0:0.1:4
Fn=(j*t).^n .* F;
fn=ifft(fftshift(Fn));fn=fn/max(abs(fn));plot(real(fn));
text(20,1.0,sprintf('%0.2f',n));
grid on;axis( [0 2*N -1.2 1.2]);
axis square;drawnow;
end;
creatively acquired from :
https://www.cs.dartmouth.edu/~farid/research/fracderiv.html