Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Controlling For loop using matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi Everyone
I have code which plays a video like that
vidobj=VideoReader('.avi');
frames=vidobj.Numberofframes; for f=1:frames thisframe=read(vidobj,f); figure(1);imshow(thisframe); Progress=fprintf('video is played'); end
Here I want to control this loop by displaying Progress message just one time not everytime when frames grow.Because as soon as number of frames increase the message is iteratively occuring in matlab command window.How can I control this statement?,
Thanks
댓글 수: 0
답변 (1개)
Vishal Rane
2013년 6월 11일
Check the for loop counter when displaying the progress. You want to display progress only when counter is 1.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!