fractional-order differentiation problem

4 次查看(过去 30 天)
Hi friends
I am using a fractional-order differentiation function, dy=glfdiff(y,t,gam), for my project. but it does not answer correctly. I have tried it with a simple task as below:
t=0:.1:2*pi;
x=sin(t);
dx=glfdiff(x,t,1);
plot(t,x)
hold on
plot(t,dx,'r')
I think dx should has a cosine shape, but it doenst, can any one help me?
this is the glfdiff function:

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by