image_number error in matlab loop
<p>can anyone help me? I have a loop as follows:</p>

<pre><code>global im2
axes(handles.axes4);

for i= 1:40

cd(strcat('C:\Users\JerryFarla\Desktop\images test\yale faces\ImageZ\',num2str(i)));
c = imread('1 (1).jpg');

%subplot(222)  
axes(handles.axes4)
imshow(c);

set(handles.image_number,'String',strcat('Processed now ---&gt;',num2str(i)))   

end
img=imread('C:\Users\JerryFarla\Desktop\images test\yale faces\ImageZ\1 (*).jpg');
a=img;
axes(handles.axes5)
imshow(img)
</code></pre>

<p>my issue is that it gives  me the error </p>

<blockquote>
  <p>??? Reference to non-existent field 'image_number'.</p>
  
  <p>Error in ==> testgui1>pushbutton2_Callback at 270
      set(handles.image_number,'String',strcat('Processed now --->',num2str(i)))</p>
</blockquote>

<p>Is the error due to my version of matlab (i'm using the R2011a version)? 
If yes, is there any function with the same purpose in this version of matlab?</p>