title: how to use set(gca, …) function on button?
body: <p>i am new in matlab so i can miss many things. I am trying to push picture up or down using button. but i am stuck. i want that when i press the button it should change the position. The ri_call( ...) function increments the row by mean it should shuffles the picture up a head when button "row increment" is pressed.</p>
  
  <p>so here is my code:</p>
  
  <pre><code> function ri_Callback(hObject, eventdata, handles)
  % hObject    handle to ri (see GCBO)
  % eventdata  reserved - to be defined in a future version of MATLAB
  % handles    structure with handles and user data (see GUIDATA)
  handles.r =  handles.r -1;
      I= imread('pout.tif');    %picture reading
      imshow(I);
      I(handles.h:handles.r,handles.wid:handles.col,:) = 0;
      I= set(gca,'Position',get(gca,'Position') + [handles.r handles.c 0 0]);   % ????? not working on button
      imshow(I);
      % Update handles structure
      guidata(hObject, handles);
  
  end
  </code></pre>