I am using contourf
to generate a contour plot for a 2 variable function.
My function is Z = f(x,y)
.
I generate x and y through meshgrid
function in matlab and generate values for Z
and then plot the contour using contour(x,y,z)
.
I want to be able to calculate the volume under this generated contour. Can anyone please help ?
Thanks in advance