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!