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