Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Controlling For loop using matlab
1 回表示 (過去 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!