Filter löschen
Filter löschen

quad

2 Ansichten (letzte 30 Tage)
12ar.af
12ar.af am 29 Sep. 2011
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.

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 29 Sep. 2011
L = 10;
out = quad(@(z)L*z./(L/2+z).*exp(-2*z/L),0,10);

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by