MATLAB Programming/Psychtoolbox/Screen Commands/CloseAll

Usage:

Screen('CloseAll')

Close all of SCREEN's windows (on- and offscreen). Closing each on-screen window takes about a second. After closing the last on-screen window the cursor is made visible.