title: Matlab: How to convert image coordinate to array indices
body: <p>I have a GUI which display 2D image. However, I am not able to recover data accurately by using mouse coordinates. This is because I am not able to convert image coordinates to array indices properly.</p>
  
  <p>I use ginput to get mouse coordinates.</p>
  
  <p>Any help would be appreciated.
  Regards
  Dushyant</p>