Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to write a function that contains integration

7 vues (au cours des 30 derniers jours)
Rajeev Ray
Rajeev Ray le 4 Avr 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
How to write the above equation in matlab

Réponses (2)

Torsten
Torsten le 4 Avr 2016
Modifié(e) : Torsten le 5 Avr 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.
  1 commentaire
Rajeev Ray
Rajeev Ray le 4 Avr 2016
Thanks Torsten

Rajeev Ray
Rajeev Ray le 4 Avr 2016
please give the code for the equation

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by