/usr/share/psychtoolbox-3/PsychRadiometric/PsychAnsiZ136MPE/AnsiZ136MPEPrintConditionalComparison.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 25 26 27 28 29 30 31 32 33 34 35 | function AnsiZ136MPEPrintConditionalComparison(string,compareFormat,mainVal,compareVal,LOG10FLAG)
% AnsiZ136MPEPrintConditionalComparison(string,compareFormat,mainVal,compareVal,[LOG10FLAG])
%
% ****************************************************************************
% IMPORTANT: Before using the AnsiZ136 routines, please see the notes on usage
% and responsibility in PsychAnsiZ136MPE/Contents.m (type "help PsychAnsiZ136MPE"
% at the Matlab prompt.
% ****************************************************************************
%
% Printout utility for test scripts.
%
% 3/2/13 dhb Wrote it.
% Optional arg
if (nargin < 5 || isempty(LOG10FLAG))
LOG10FLAG = false;
end
% Handle log10 while preserving conditional info
if (LOG10FLAG)
mainVal = log10(mainVal);
if (compareVal > 0)
compareVal = log10(compareVal);
end
end
% Main print
fprintf(string,mainVal);
% Conditional print
if (compareVal > 0)
fprintf([' (cf. ' compareFormat ')\n'],compareVal);
else
fprintf('\n');
end
|