Hi!
I am looping in time through a series of images and I want to give a chance for the user to interact with them between updates. However, I do not want to ask the user at every single update whether they want to interact or not. Ideally I would like to implement something like this:
figurefor t=tini:tfin imagesc(squeeze(ima(:,:,t)) waitforbuttonpress_for_no more_than_200_ms; if there_was_a_buttonpress do_something_to_figure; endend
Can you help? Many thanks,
Marta
Best Answer