Files

4 lines
127 B
Matlab

function nm = thz2nm(thz)
freq_in_hz = thz.* 1e12;
nm = (299792458 ./ freq_in_hz) .*1e9; %wavelength in nanometer
end