how to write a function that contains integration
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
回答 (2 件)
E=...;
rho=@(E_s) ...;
fun=@(E,E_s)rho(E_s)/(delta*sqrt(2*pi)).*exp(-(E-E_s).^2/(2*delta^2));
values=integral(@(E_s)fun(E,E_s),0,Inf);
Best wishes
Torsten.
1 件のコメント
Rajeev Ray
2016 年 4 月 4 日
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

