/usr/share/psychtoolbox-3/PsychObsolete/IsWinMatlabR11Style.m is in psychtoolbox-3-common 3.0.11.20131230.dfsg1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | function resultFlag = IsWinMatlabR11Style
% resultFlag = IsWinMatlabR11Style
%
% Return true if Psychtoolbox is running on Microsoft Windows,
% with a Matlab version older than R2007a, i.e. using MEX files that
% are compiled against Matlab R11.
%
% See also: IsOSX, IsLinux, IsOS9, IsWin, OSName, computer
% HISTORY
% 1/03/10 mk Wrote it.
persistent rc;
if isempty(rc)
% Running on Windows, but not on Octave (ie., on Matlab) and the Screen
% mex file has a .dll extension? If so we're on a R11 based system:
if IsWin & ~IsOctave & ~isempty(findstr(which('Screen'), 'Screen.dll')) %#ok<AND2>
rc = 1;
else
rc = 0;
end
end;
resultFlag = rc;
|