title: 3D Surface plot for a function P(X,Y,Z)
body: <p>I have a matrix of the form</p>
  
  <pre><code>X, Y, Z, P   
  1, 2, 3, 2
  5, 3, 5, 2
  1, 2, 4, 5
  </code></pre>
  
  <p>and so on...</p>
  
  <p>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 &amp; Y being represented by rows and columns which would mean Z(X,Y) and which is different from what I need to plot here.</p>
  
  <p>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.</p>
  
  <p>Thanks in advance!</p>