Sunteți pe pagina 1din 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

S-ar putea să vă placă și