how to write a function that contains integration

How to write the above equation in matlab

Antworten (2)

Torsten
Torsten am 4 Apr. 2016
Bearbeitet: Torsten am 5 Apr. 2016
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.
Rajeev Ray
Rajeev Ray am 4 Apr. 2016

0 Stimmen

please give the code for the equation

Diese Frage ist geschlossen.

Gefragt:

am 4 Apr. 2016

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by