hi all
i want to know
how can i delay the i mshow(img) a period of time
the the for loop display image 1 the stay a period of time then
show image 2 ...etc
for i = 1:7
str = strcat(int2str(i),'.jpg');
eval('img=imread(str);');
f=imshow(img);
waitfor(f)
end
with regards
Enas
how can i delay the condition of for loop
Started by ●May 7, 2007
Reply by ●May 9, 20072007-05-09
Hi Enas,
There is the command "pause" which works like the "sleep" command. For example
for i=1:3,
dosomething;
pause(3);
end
check out "help pause".
Good luck,
Wil
http://wilperkins.com
hi all
>i want to know
>
>how can i delay the i mshow(img) a period of time
>the the for loop display image 1 the stay a period of time then
>show image 2 ...etc
>for i = 1:7
>str = strcat(int2str(i),'.jpg');
>eval('img=imread(str);');
>f=imshow(img);
>waitfor(f)
>end
>
>with regards
>Enas
There is the command "pause" which works like the "sleep" command. For example
for i=1:3,
dosomething;
pause(3);
end
check out "help pause".
Good luck,
Wil
http://wilperkins.com
hi all
>i want to know
>
>how can i delay the i mshow(img) a period of time
>the the for loop display image 1 the stay a period of time then
>show image 2 ...etc
>for i = 1:7
>str = strcat(int2str(i),'.jpg');
>eval('img=imread(str);');
>f=imshow(img);
>waitfor(f)
>end
>
>with regards
>Enas