title: Save exact image output from imagesc in matlab
body: <p><img src="https://i.imgur.com/w53aBgk.png" alt="Rainbow"></p>
  
  <p>Hi , I want to save this image produced from <code>imagesc(magic(3))</code>, the exact rainbow representation, is it possible?</p>
  
  <p>Thanks.</p>
  
  <p>This question might look like a duplicate , but it is not . I looked at the solution to the similar question at this site , but it did not satisfy me .
  I have looked into the Matlab help center and the close answer that I got was this one , at the bottom of <a href="http://goo.gl/p907wR" rel="noreferrer">http://goo.gl/p907wR</a></p>