title: How to interpolate a matrix in MATLAB?
body: <p>I have the following data with me. The first row and the first column (highlighted) are two parameters for which the rest of the elements have been generated. I am hoping to convert this matrix into a 50 by 50 matrix, interpolating the data between the rows and column.</p>
  
  <p>I have tried interpolating the second column in the following manner,</p>
  
  <pre><code>x=[100 300 500 700];
  y=[-20 -184 -315.2 -412];
  z = linspace(x(1),x(4),50);
  yi=interp1(x,y,z,'cubic'); 
  </code></pre>
  
  <p>But, my problem is, I am not able to figure out how to interpolate with respect to the row simultaneously and get the entire matrix.</p>
  
  <p>Any help/suggestion would be most welcome.</p>
  
  <p>The data is given below;</p>
  
  <pre><code>    30  60  90
  100 -20 -45 -80.5
  300 -184    -215    -225.4
  500 -315.2  -254    -339
  700 -412    -419    -488
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Okw8T.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Okw8T.jpg" alt="enter image description here"></a></p>