MATLAB: Discrete double integral in MATLAB if I know function value at each point

MATLAB

How do I calculate double integral if I know values of the function to be integrated at each and every point in x,y domain (values are discrete) in MATLAB? I have all the data stored in a file in .csv format. Actually, I'm trying to find ECC for the MIMO antenna using far-field and I got the values of the radiated field and now I'm stuck here in the integration part. Please help.

Best Answer

trapz() twice, once along each direction.
Related Question