MATLAB Answers


use subplot play video

Pan 님이 질문을 제출함. 19 Feb 2012
최근 활동 dpb 님이 편집함. 16 Oct 2013
Hi,I need to help.
This code could show image in same figure, but I want to play video not image,I don't know how to do.
subplot(1,2,1), imshow('autumn.tif');
subplot(1,2,2), imshow('glass.png');

  댓글 수: 0

로그인 to comment.


답변 수: 1

 채택된 답변

Hi, maybe
obj = mmreader('xylophone.mpg');
vid = read(obj);
for frame = 1 : size(vid,4)
bw = im2bw(vid(:,:,:,frame));
subplot(2,1,1); imshow(vid(:,:,:,frame));
subplot(2,1,2); imshow(bw);

  댓글 수: 2

Hi, may I ask you the quwstion.
I want to play the video, for example "can.avi" and "watch.avi" and "book.avi" and " phone.avi". I try it but the code doesn't play.
This code is used for 1 video only..
Please try implay for several videos.

로그인 to comment.

Translated by