for loop become to while loop
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
this is my code , but it's for loop, I want to become to "while loop"
How to do?
pleas teach me , thank you!
for im=idxip(a):idxip(a+1)
subplot(1,1,1);
imshow(uint8(xi(:,:,:,im)));
title('video','Fontsize',22);
%pause(1);
drawnow;
end
Antworten (2)
Ilham Hardy
am 6 Aug. 2012
0 Stimmen
doc while
Azzi Abdelmalek
am 6 Aug. 2012
Bearbeitet: Azzi Abdelmalek
am 6 Aug. 2012
im=idxip(a)
while im<=idxip(a+1)
%----your code----------------
subplot(1,1,1);
imshow(uint8(xi(:,:,:,im)));
title('video','Fontsize',22);
%pause(1);
drawnow;
%------------------------------
im=im+1
end
% while the condition is checked, the program will redo the loop
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!