/usr/share/psychtoolbox-3/PsychOneliners/EnforcePos.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 | function out = EnforcePos(out)
% out = EnforcePos(in)
%
% Enforce the constraint that spectral power must be
% positive.
%
% A sophisticated algorithm might do something with small
% positive values as well.
%
% 10/23/93 dhb Wrote it.
out(out<0) = 0;
|