Clear Filters
Clear Filters

How is the Riemann-Liouville fractional order integral code in MATLAB?

5 views (last 30 days)
How is the Riemann-Liouville fractional order integral code in MATLAB?

Answers (1)

Walter Roberson
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)
Iaf(t) = 
%example
subs(Iaf, {f}, {sin(s)})
ans(t) = 
subs(Iaf, {alpha, f}, {sym(5)/4, sin(s)})
ans(t) = 
%example 2
subs(Iaf, {f}, {s*(s-5)})
ans(t) = 
subs(Iaf, {alpha, f}, {sym(5)/4, s*(s-5)})
ans(t) = 

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!