how to set up a function involving integrals integral bounds
2 次查看(过去 30 天)
显示 更早的评论
I'm trying to set up a function that looks like
where a is a constant.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/698482/image.png)
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 个评论
采纳的回答
Steven Lord
2021-7-29
The integral function is for numeric integration.
The int function is for symbolic integration.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!