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 日

0 投票

L = 10;
out = quad(@(z)L*z./(L/2+z).*exp(-2*z/L),0,10);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by