How is the Riemann-Liouville fractional order integral code in MATLAB?
4 views (last 30 days)
Show older comments
How is the Riemann-Liouville fractional order integral code in MATLAB?
Answers (1)
Walter Roberson
on 2 Dec 2023
Edited: Walter Roberson
on 2 Dec 2023
syms alpha t s real
syms f(s)
Iaf(t) = 1/gamma(alpha) * int((t-s)^(alpha-1) * f, s, 0, t)
%example
subs(Iaf, {f}, {sin(s)})
subs(Iaf, {alpha, f}, {sym(5)/4, sin(s)})
%example 2
subs(Iaf, {f}, {s*(s-5)})
subs(Iaf, {alpha, f}, {sym(5)/4, s*(s-5)})
0 Comments
See Also
Categories
Find more on Numbers and Precision 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!