integrate 2D data

Hi,
I have a column vector X [Nx1], a Row Vector Y [1xM] and data Z [NxM] -> is there a way to integrate Z over the area defined by X,Y?
Thanks alot!

Answers (1)

Star Strider
Star Strider on 21 Mar 2019

2 votes

Use trapz (link) or cumtrapz (linked to in that page).

Asked:

on 21 Mar 2019

Answered:

on 21 Mar 2019

Community Treasure Hunt

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

Start Hunting!