Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

how to write a function that contains integration

2 visualizzazioni (ultimi 30 giorni)
Rajeev Ray
Rajeev Ray il 4 Apr 2016
Chiuso: MATLAB Answer Bot il 20 Ago 2021
How to write the above equation in matlab

Risposte (2)

Torsten
Torsten il 4 Apr 2016
Modificato: Torsten il 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 il 4 Apr 2016
please give the code for the equation

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by