how to set up a function involving integrals integral bounds
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
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!