Integration of a function
조회 수: 2 (최근 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.


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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!