MATLAB Answers

how to set up a function involving integrals integral bounds

12 views (last 30 days)
Maggie liu
Maggie liu on 29 Jul 2021
Commented: Maggie liu on 2 Aug 2021
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);

Accepted Answer

Steven Lord
Steven Lord on 29 Jul 2021
The integral function is for numeric integration.
The int function is for symbolic integration.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by