How do I write this integral?
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/887045/image.png)
How do you write this integral and also compute it.
댓글 수: 1
Star Strider
2022년 2월 7일
This is actually straightforward, so I’ll provide links to the integral function and to Anonymous Functions.
Those should be everything you need!
답변 (1개)
Prachi Kulkarni
2022년 2월 17일
Hi,
You can write the integral as follows.
fun = @(x) 13*exp(-((x-pi)/0.0003).^2);
q = integral(fun,0,2*pi)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!