equation

2 次查看(过去 30 天)
ricco
ricco 2011-11-14
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by