How do I write this integral?
显示 更早的评论

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)
类别
在 帮助中心 和 File Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!