-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLambert.m
18 lines (17 loc) · 895 Bytes
/
Lambert.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% ------------- DOCUMENTATION OF THIS FUNCTION -------------
% #DESCRIPTION: Calculates absorption based on refractive index and thicknesses of a
% layer for all angles of incidence. t needs to be a scalar, n needs to be
% a vector.
% #INPUT: n: Refractive indices of incoherent layer (array)
% t: Layer thicknesses of effective interface (array)
% lambda: Wavelengths (vector)
% #OUTPUT: abs: Absorption of incoherent layer for all wavelengths and all angles of incidence(array)
% #SAVED DATA: -
% #REQUIRED SUBFUNCTIONS: -
%
% #ADD COMMENTS:
%
% -----------------------------------------------------------
function abs = Lambert(n,t,lambda)
abs = (1-exp(-(1./cosd(0:89))'*(4*pi./lambda).*imag(n)*t));
end