FAQ - How can I during the experiment update Matlab figures


Q: How can I during the experiment update Matlab figures?
A: Use the drawnow matlab command after the plot command. This forces matlab to redraw the current figure. Check also the "Forum" (search drawnow) for further help.

It is NOT recommended to use it in the loop where stimulus presentation is performed (I personally use it after the stimulus presentation finished and subject response is collected, and before next trial starts - keyboard press from subject). It would destroy your stimulus timing (Screen('Flip',...) command).
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki