필터 지우기
필터 지우기

quad

조회 수: 2 (최근 30일)
12ar.af
12ar.af 2011년 9월 29일
i have an equation f=((L*z)/((L/2)+z))*exp((-2*z)/L)
where L=10; z=0:10
i need to intergrate this equation from 0 to 10 using quad command.
Can someone please help me how to do this?Its urgent.

채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 9월 29일
L = 10;
out = quad(@(z)L*z./(L/2+z).*exp(-2*z/L),0,10);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by