What are ‘X and Y axis’?
I would use trapz and approach it as:
This gives ‘Xint’ as a (1x10x15) matrix and ‘Yint’ as a (10x1x15) matrix. After the squeeze calls, they are both (10x15) matrices.
Alternatively, do successive integrations:
producing a (1x15) vector.
Experiment with this approach to get the result you want (since I have absolutely no idea what that is).