~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychColorimetric/QuantaToTrolands.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function trolands = QuantaToTrolands(wl,quanta,S_vLambda,vLambda)
 
 
b'% trolands = QuantaToTrolands(wl,quanta,S_vLambda,vLambda)'
 
 
b'%'
 
 
b'% Convert from quanta (sec-1 deg-2) to to trolands for a'
 
 
b'% monochromatic light.'
 
 
b'%'
 
 
b'% See W&S, p. 103.'
 
 
b'%'
 
 
b'% 8/15/96  dhb, abp  Wrote the header.'
 
 
b'% 8/22/96  dhb       Wavelength should be in meters.'
 
 
b'wls_vLambda = MakeItWls(S_vLambda);'
 
 
b'index = find(wl == wls_vLambda);'
 
 
b'trolands = (quanta/(wl*1e-9))*vLambda(index)*4.454e-13;'
 
 
b'\\ No newline at end of file'