Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to write a function that contains integration

8 ビュー (過去 30 日間)
Rajeev Ray
Rajeev Ray 2016 年 4 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
How to write the above equation in matlab

回答 (2 件)

Torsten
Torsten 2016 年 4 月 4 日
編集済み: Torsten 2016 年 4 月 5 日
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
Rajeev Ray 2016 年 4 月 4 日
Thanks Torsten

Rajeev Ray
Rajeev Ray 2016 年 4 月 4 日
please give the code for the equation

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by