Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Controlling For loop using matlab
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Vishal Rane
el 11 de Jun. de 2013
Check the for loop counter when displaying the progress. You want to display progress only when counter is 1.
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!