Reply by will...@sygnvs.com 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
Reply by enas...@gmail.com May 7, 20072007-05-07
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