Home > atmlab > physics > planck_wlength.m

planck_wlength

PURPOSE ^

PLANCK_WLENGTH Planck function, as a function if wavelength

SYNOPSIS ^

function BT = planck_wlength( la, T )

DESCRIPTION ^

 PLANCK_WLENGTH  Planck function, as a function if wavelength

 Calculates the Planck function (blackbody radiation) for given wavelength 
 and temperature.
 
 FORMAT   BT = planck_wlength(la,T)

 OUT       BT = Blackbody radiation.
 IN       la = wavelength in [m]
          T  = Temperature in [K].

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

planck_wlength.m

SOURCE CODE ^

0001 % PLANCK_WLENGTH  Planck function, as a function if wavelength
0002 %
0003 % Calculates the Planck function (blackbody radiation) for given wavelength
0004 % and temperature.
0005 %
0006 % FORMAT   BT = planck_wlength(la,T)
0007 %
0008 % OUT       BT = Blackbody radiation.
0009 % IN       la = wavelength in [m]
0010 %          T  = Temperature in [K].
0011 
0012 % 2003-10-27 Created by Patrick Eriksson
0013 
0014 function BT = planck_wlength( la, T )
0015 
0016 planck = constants('PLANCK_CONST');
0017 boltzmann = constants('BOLTZMANN_CONST');
0018 speed_light = constants('SPEED_OF_LIGHT');
0019 
0020 a = 2 * planck * speed_light^2;
0021 b = planck * speed_light / boltzmann;
0022   
0023 BT =  a ./ la.^5 ./ ( exp( b./(la.*T) ) - 1 );

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005