I have a matrix of the form
X, Y, Z, P
1, 2, 3, 2
5, 3, 5, 2
1, 2, 4, 5
and so on...
It basically represents a surface in X,Y,Z where P(X,Y,Z) is the Pressure distribution over it. I am looking to create a 3D surface plot (or any other type of plot) of it in MATLAB, but MATLAB typically requires a 2X2 Matrix for the Z values with X & Y being represented by rows and columns which would mean Z(X,Y) and which is different from what I need to plot here.
So, I am really confused on how to proceed here with the 3D surface functions in MATLAB and would really appreciate any help i can get with regards to it.
Thanks in advance!