/usr/share/psychtoolbox-3/PsychRadiometric/FrequencyTHzToWavelengthNm.m is in psychtoolbox-3-common 3.0.12.20160126.dfsg1-1ubuntu1.
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 | function [wavelengthNm] = FrequencyTHzToWavelengthNm(frequencyTHz)
% [wavelengthNm] = FrequencyTHzToWavelengthNm(frequencyTHz)
%
% Convert the frequency of light, expressed in THz, to
% the wavelength of light expressed in Nm.
%
% How to do this conversion is available in many places, but I
% got it from Rodieck, First Steps in Seeing, p. 517. There
% you can read that 500 nm <-> 600 THz.
%
% 5/23/14 dhb Wrote it.
NmPerTHz = 300000;
wavelengthNm = NmPerTHz/frequencyTHz;
|