Effacer les filtres
Effacer les filtres

equation

2 vues (au cours des 30 derniers jours)
ricco
ricco le 14 Nov 2011
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

Réponses (1)

bym
bym le 15 Nov 2011
cumtrapz(z.*Az) % assuming z & Az are numerical column vectors

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by