/usr/share/psychtoolbox-3/PsychRadiometric/WavelengthNmToFrequencyTHz.m is in psychtoolbox-3-common 3.0.14.20170103+git6-g605ff5c.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 [frequencyTHz] = WavelengthInNmToFrequencyInTHz(wavelengthNm)
% [frequencyTHz] = WavelengthInNmToFrequencyInTHz(wavelengthNm)
%
% 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;
frequencyTHz = NmPerTHz/wavelengthNm
|