Clear Filters
Clear Filters

fractional-order differentiation problem

8 views (last 30 days)
hossein
hossein on 4 May 2020
Edited: hossein on 4 May 2020
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:

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!