title: displaying images on axes in MATLAB
body: <p>I have a GUI with 5 axes in it, where images which are stored in text file(notepad) are displayed. Images in text file are not static, it keeps updating with new ones. I mean for first search images are different and after closing all windows again if i run same program for next search different images may get saved in notepad.</p>
  
  <pre><code>function displayResults(filename, header)
  
  figure('Position',[200 100 700 400], 'MenuBar', 'none', 'Name', header, 'Resize',     'off', 'NumberTitle', 'off');
  
  % Open 'filename' file... for reading...
  fid = fopen(filename);
  for N=1:5
      imagename = fgetl(fid);
      if ~ischar(imagename), break, end       % Meaning: End of File...
  
       (x) = imread(imagename);
       axes(handles.axesN);
       imshow(fname);
       xlabel(imagename);
  end
  fclose(fid);
  </code></pre>
  
  <p><code>filename is text file</code></p>
  
  <p>I need to fit these images on all 5 axes, but I'm getting error like <code>undefined variable handles.axesN</code>
  How can i go for it?</p>