Integration of a function
4 ビュー (過去 30 日間)
古いコメントを表示
Using the MATLAB intergral function you can integrate a function between a min and max value. integral(fun,min,max)
But I was wondering how you can show the intergated equation in MATLAB?
For example, If i intergrate
I would get
. How can a display that in MATLAB.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/823355/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/823360/image.png)
Thanks
0 件のコメント
回答 (4 件)
John D'Errico
2021 年 12 月 4 日
Integral is a NUMERICAL tool for integration, uing adaptive numerical methods. It will return a NUMERICAL result, and only applies to definite integrals. Nothing more.
You need to use symbolic tools to perform an integration. That means you need to use syms.
syms x % creates x as a symbolic variable
int(x^2 + 2) % use int, NOT integral
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!