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.

 Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 29 de Sept. de 2011

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Physics en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 29 de Sept. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by