how to set up a function involving integrals integral bounds
3 views (last 30 days)
Show older comments
I'm trying to set up a function that looks like where a is a constant.
how can I do this? when I try using the following code, it tells me that "Limits of integration must be double or single scalars."
Many thanks!
syms f(x)
f(x) = integral(fun,a,x);
0 Comments
Accepted Answer
Steven Lord
on 29 Jul 2021
The integral function is for numeric integration.
The int function is for symbolic integration.
2 Comments
More Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox 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!