title: imshow() produces different output to imwrite()
body: <p>I was wondering how it is possible to save an image created by imshow() in matlab. The code below uses the imshow() function with the min and max arguments specified - How can I apply this directly to the image itself instead of just specifying Matlab to <em>show</em> it?</p>
  
  <pre><code>imshow(img4fft, [1 300000]);
  imwrite(img4fft, 'img.png');
  </code></pre>
  
  <p>Writing to the file produces a different output to what is shown via imshow().</p>
  
  <p>Can anyone suggest how to get the output from imshow() saved as an image?</p>
  
  <p>Many thanks MatLab is an alien language to me!</p>