title: Matlab plot - cannot convert double to a handle
body: <p>in the script I'm working with, I need to estimate the values of the function <code>f(xx, deg)</code> for different values of <code>xx</code> and <code>deg</code> (code below). When I run the code, I get the following error: <code>Cannot convert double value 202.893 to a handle</code>. I checked the <a href="http://blogs.mathworks.com/loren/2014/11/05/matlab-r2014b-graphics-part-3-compatibility-considerations-in-the-new-graphics-system/#eed4c37f-5539-4ebb-b5e3-eb41e880b752" rel="nofollow">Matworks website</a> but the explanation is not very clear. Do you have any suggestion on how to fix this?</p>
  
  <p>Here's the piece of code related to the problem:</p>
  
  <pre><code>g = figure; xlabel('Omega'); ylabel('Y');
  plot(Angle, Y, '*'); hold on;
  for xx = 1:number_centers
      for deg = 1:180
            f(xx, deg) = double((R_fit(xx)*sind(alpha_fit(xx)+deg)/0.05)+113);
      end
      plot(1:180, f(xx,:), '.');
  end
  </code></pre>