title: Imagesc function on Matlab: problems in converting 3D shapes in 2D
body: <p>I'm currently using imagesc function in Matlab for converting 3d shapes in 2d ones . Usually it works fine, but I tried to create a 3D ramp and then to rotate it but on imagesc I cannot visualize the rotation (in 3d it works).</p>
  
  <p>The code is this:</p>
  
  <pre><code>    N=100;
      x = linspace(0,10000,N);
      y = linspace(0,10000,N);
      screen_size = get(0, 'ScreenSize');
      screen_dim=[screen_size(1,3) screen_size(1,4)];
      center=.5;
  
      [xx,yy] = meshgrid(x,y);
      zz=xx+screen_size(1,3)/2; %centrato sula metá della lunghezza dello schermo
      surf(xx,yy,zz)
      hold on
      [az el R] = cart2sph(xx,yy,zz);
      az=az+pi/3;
  
      [xx1 yy1 zz1] = sph2cart(az,el,R);
      surf(xx1,yy1,zz1)
      hold off
  
      figure(); imagesc(zz)%ramp
      figure(); imagesc(zz1)%rotated ramp
  </code></pre>
  
  <p>Can u please tell me what' s wrong with this code?</p>
  
  <p>Thx a lot.</p>