equation

How would you integrate he following equation in matlab:
Zv=int_{0}^{zd}(z*Az*dz)
where dz refers to integrate with respect to z; zd=20; z=depth for the measurement (which is a column vector); and Az= area at depth of measurement (also a column vector). So, basically I should obtain a vector for Zv from integrating between 0 to zd for z*Az with respect to z.
thanks

Respuestas (1)

bym
bym el 15 de Nov. de 2011

0 votos

cumtrapz(z.*Az) % assuming z & Az are numerical column vectors

Categorías

Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Nov. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by