how to write a function that contains integration
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Answers (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 Comment
Rajeev Ray
on 4 Apr 2016
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
