0% found this document useful (0 votes)
201 views3 pages

MATLAB

Andreas B. Dahlin TransferMatrix.m This program calculates the transmission, reflection and absorption in an arbitrary thin film multilayer system.

Uploaded by

Path Bagtoltol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
201 views3 pages

MATLAB

Andreas B. Dahlin TransferMatrix.m This program calculates the transmission, reflection and absorption in an arbitrary thin film multilayer system.

Uploaded by

Path Bagtoltol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

7/31/2015

MATLAB

MATLAB

AndreasB.Dahlin
TransferMatrix.m
Thisprogramcalculatesthetransmission,reflectionandabsorptioninan
arbitrarythinfilmmultilayersystem.
DownloadtheMATLABfilehere:TransferMatrix3.m

Thefigureshowstheresultgeneratedbytheprogramwhenrunasis.Inthis
case,itgeneratesthefarfieldangularspectrum(670nmincidentlight)ofa50
nmgoldfilmonglassinwater.Thesurfaceplasmonexcitationisseenasadip
inthereflection.Thesimulationalsoincludesadielectriccoatingonthegold
film(n=1.4)withdifferentthickness(hencetheseriesofgraphs).Thiscanbe
thoughtofasasimulationofaplasmonicbiosensorsystem.
TheTransferMatrixprogramcanbeusedtosimulatetransmissionthroughand
reflectionfromanykindofthinfilmmultilayerjustchangetheparametersin
thebeginningofthefile!Youcanalsochangetoawavelengthspectrumata
fixedangleofincidence.Ifamaterialisdispersiveyoushouldjustincludea
newrefractiveindexcalculationinthewavelengthloop.
IusetheTransferMatrixprogramtosimulatethetransmissionoflightthrough
http://adahlin.com/matlab.html

1/3

7/31/2015

MATLAB

mythinfilmmultilayers.Althoughtheprogramnaturallydoesnotconsiderthe
precenseofporesinthelayeritstillgivesagoodestimateofpeaksanddips
duetoFabryPerotinterferenceandsimplifiesinterpretationofexperiemntal
spectraofnanoporearrays.
YouarefreetousetheMATLABcodeforanypurposebutpleasecitethe
reference:J.Junesch,T.Sannomiya,A.B.Dahlin,ACSNano2012.The
supportinginformationforthispaperdescribesthecalculations.

SurfaceWavesTM.m
Thisprogramcalculatesthedispersionrelationfortransversemagneticsurface
wavesinanarbitrarythinfilmmultilayersystem.
DownloadtheMATLABfilehere:SurfaceWavesTM6.m

Thisprogramcanbeuserconfiguredasthetransfermatrixcalculations.When
usedasis,itwillcalculatethedispersionrelationofhybridizedsurfaceplasmon
modesinametalinsulatormetalsystem(20nmAuonbothsidesofa50nmn
=2.24dielectricinair).Thefigurebelowshowstheresultsofsolvingforthe
higherenergyhybridizedbondingmode.Theplotsgeneratedarefordispersion,
propagationlengthandfields.(Themagneticfieldgivesa1DplotforTMmodes
whiletheelectricfieldismorecomplicatedtovisualizesinceithastwo
components.)
Thealgorithmsolvestheequationsbyfindingtherealandimaginarypartsof
http://adahlin.com/matlab.html

2/3

7/31/2015

MATLAB

thekvectorbyminimization.Theprogramstartswithgeneratingaplotofthe
numericalresidualfordifferentvaluesofthekinitialguess.Youshouldclickin
theplotatalocationwhereyouseeaminimum.Differentminimacorrespond
todifferentmodes.
YouarefreetousetheMATLABcodeforanypurposebutpleaseciteasuitable
referencelike:A.B.Dahlin,M.Mapar,K.Xiong,F.Mazzotta,F.Hk,T.
Sannomiya,AdvancedOpticalMaterials2014.Thesupportinginformationfor
thispaperdescribesthecalculationsindetail.

http://adahlin.com/matlab.html

3/3

You might also like