title: Z must be a matrix, not a scalaqr or vector, matlab
body: <p>I am trying to make a 3d plot but i am getting an error and im not sure how to solve it. I know that there are other questions out there similar to mine but i tried some of them and it did not work.</p>
  
  <pre><code>fh = sin(x)*cos(y).^3 + 2*cos(x).^5*sin(y)
  
  [X,Y] = meshgrid(1:0.5:10,1:20);
  
  surf(X,Y,fh)
  
  Error using surf (line 82)
  Z must be a matrix, not a scalar or vector.
  </code></pre>