title: how to read and display multiple image in axes gui matlab
body: <p>currently i'm working on a project where i need to read 9 images at once and display them in 9 axes with matlab gui.
  I've tried some code but it doesn't work.</p>
  
  <pre><code>[file,folder,FilterIndex] = uigetfile('*.*','MultiSelect','on');
  
  handles.img=cell(1,length(file));
  
  for ifile = 1:length(file)
      filename=fullfile(folder,file(ifile).name);
      image=imread(filename);
      axes(handles.axes{ifile});
      imshow(image);
      handles.img{ifile}=image
  
  end
  </code></pre>
  
  <p>this is the error messages:</p>
  
  <pre><code>??? Improper index matrix reference.
  
  Error in ==&gt; guikedelaizulfa&gt;open_Callback at 1098
      filename=fullfile(folder,file(ifile).name);
  
  Error in ==&gt; gui_mainfcn at 96
          feval(varargin{:});
  
  Error in ==&gt; guikedelaizulfa at 42
      gui_mainfcn(gui_State, varargin{:});
  
  Error in ==&gt;
  @(hObject,eventdata)guikedelaizulfa('open_Callback',hObject,eventdata,guidata(hObject))
  
  
  ??? Error while evaluating uicontrol Callback
  </code></pre>
  
  <p>Thank you for your help</p>