필터 지우기
필터 지우기

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