hello~may I help you?
this is my code
obj = mmreader('watch.avi');vid = read(obj);for frame = 1 : size(vid,4) % bw = im2bw(vid(:,:,:,frame));
subplot(2,2,1); imshow(vid(:,:,:,frame)); subplot(2,2,2); imshow(vid(:,:,:,frame)); subplot(2,2,3); imshow(vid(:,:,:,frame)); subplot(2,2,4); imshow(vid(:,:,:,frame)); drawnow; end
I want to use button that can "play"and "stop" and"close"
h4 = uicontrol('Style','PushButton','Units','normalized',... 'String','play','Position',[.05 .05 .1 .1]);
controlling all video.
Best Answer