Doing a nested numerical integral in Matlab
10 ビュー (過去 30 日間)
古いコメントを表示
How do I do the following nested integral in Matlab? The goal is to evaluate the following:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1245487/image.png)
where the function ϕ is defined as
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1245492/image.png)
where
. The notation seems a bit weird to me since the argument of ϕ in the second equation is only part of the argument where it appears in the first equation. I imagine that just means μ is re-defined in terms of itself. Assuming that's correct, how do I do this nested integral?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1245497/image.png)
0 件のコメント
採用された回答
Torsten
2022 年 12 月 28 日
mu = -20:0.01:20;
f = @(mu) integral2(@(u,sigma) sin(mu*sqrt(1-sigma.^2).*cos(pi/2*u)).*(sin(mu*sigma/2)).^2,0,1,0,1);
P = arrayfun(@(mu)f(mu),mu);
plot(mu,P)
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!