Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to write a function that contains integration

조회 수: 7 (최근 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.

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