title: I have a gui with an axis and a push button
body: <p>I have a gui with an axis and a push button, when I press the push button a video should play in the axis plot.. I have written this code but it is not being executed nor it is showing any errors.. Can anyone please help me..        </p>
  
  <pre><code>    function pushbutton1_Callback(hObject, eventdata, handles)
      % hObject    handle to pushbutton1 (see GCBO)
      % eventdata  reserved - to be defined in a future version of MATLAB
      % handles    structure with handles and user data (see GUIDATA)
      handles=guidata(hObject); 
      mov=VideoReader('VileParle.mp4');
      nFrames=mov.NumberOfFrames;
      for i=1:nFrames
        img=read(mov,i);
        imshow(img,[]);
      end
      guidata(hObject,handles)
  </code></pre>