~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychBasic/clearScreen.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
% clearScreen -- Implementation of "clear Screen" for GNU/Octave.
2
 
%
3
 
% This routine does what Matlab's "clear Screen" would do, but
4
 
% it takes the special requirements of Octave into account.
5
 
%
6
 
% You can use this command in scripts for Matlab as well, it will
7
 
% do the right thing.
8
 
 
9
 
% History:
10
 
% 05/11/06 written (MK)
11
 
 
12
 
try
13
 
  if IsOctave
14
 
    if mislocked('Screen')
15
 
      Screen('JettisonModuleHelper');
16
 
    end;
17
 
  end;
18
 
catch
19
 
  % Nothing to do.
20
 
end
21
 
 
22
 
% Clear the module out of Matlab's or Octave's workspace.
23
 
clear Screen;