20118308JournalofMianyangNormalUniversityAug.2011Vol.30No.82011-06-082011-07-021974-。MATLAB621000MATLAB。、。MATLABO436.1TP391.9A1672-612x201108-0042-04。、。Mathworks1984———“MATLAB”、。、“MATLAB”12。1131Fig.1InterferencepatternS1S2E01=A01cosωt+φ01E02=A02cosωt+φ02{1-1A01A02S1S2φ01φ02S1S2PPE01=A01cosωt-r1v1+φ01E02=A02cosωt-r2v2+φ02{1-2r1=s1Pr2=s2Pv1v2r1r2PΔφ=ω1-ω2t+φ01-φ02-2πr1λ1-r2λ2=φ01-φ02=0{1-3Ⅰω1-ω2=0。Ⅱφ01-φ02=。Ⅲ1cosθ≠0。1-3Δφ=ωr2v2-r1v1+φ01-φ02=2πλn2r2-n1rn+φ01-φ021-4ω=2πv=2πc/λλn1=c/v1n2=c/v2r1r2cφ01-φ02=0n1=n2=n=1Δφ=2πλr2-r11-51r1=y-d2+L槡2r2=y+d2+L槡21-6αB=4B0cos2α/2。2MATLAB2452Fig.2Flowchartofsimulationprocess3MATLAB400nm-760nm。r1r2fori=1Ny·34·8MATLABr1=sqrtysi-kuandu/2.^2+juli^2r2=sqrtysi+kuandu/2.^2+juli^2Phi=2*pi*r2-r1/bochangBi=4*cosPhi/2.^2endclffiguregcfNCLevels=255Br=B/4.0*NCLevelssubplot121imagexsysBrcolormapgrayNCLevels4λ、d、L3。3MATLABFig.3InterferenceprinciplesimulationinMATLAB5“MATLAB”。。1.MATLAB7.0M.200631-307.2TheMathworks.Inc.EB/OL.http//.mathworks.com/support/@1994-2007.3.M.198449-125.4.M.19971-12.5StephenChapman.MATLABM.20032-96.6.J.200818531-33.7FS.3M.2000.8.J.2005183106-108.9.J.200320158-611.10.MATLABJ.200727117-20.·44·30ComputerSimulationwithInterferenceofYong'sBi-slitBasedonMATLABCHENYanHESongSchoolofphysicsMianyangNormalUniversityMianyangSichuan621000AbstractThispaperistointroducetheprincipleofinterferingexperimentswithYong'sbi-slitandhowtosimulatetheexperimentsbyusingtheprogrammingskillofMATLAB.ThisexperimentofsimulationissimpleandintuitiveandthesimulationpatternsbeinginterferedbyYong'sbi-slitcanbeeasilyobtainedunderdifferentlengthsofopticalwaveswidthsofslitanddistancesofscreen.Itcanbeabasisfortheoreticalteachingofopticsandexperiments.KeywordsMATLABvisualizationsimulationYong'sbi-slitinterference371.M.20094.2.MSP430M.2007.3.J.200712114-116.4.M.20076.5.M.20077.6.51M.2003.7.M.1999.8.M.20011.9CrayCSwinhoeCFMyinletal.TargetcontrolledinfusionofketamineasanalgessiaforTIVAwithpropofol.Can.JAnesth199940957.10R.JHiggens.ElectronicsandAnalogIntegratedCircuitsM.N.J.Prentice-HallInc2001.OnDesignofWirelessChargerBasedonMSP430MicrocontrollerZHOUGong-ming1ZHOUChen-chen21.InstituteofPhysics&electronicengineeringMianyangNormalUniversityMianyangSichuan6210002.GraduateSchoolofMechanicalElectronEngineeringDepartmentEngineeringInstituteofShantouUniversityShantouGuangdong515000AbstractThispaperistointroducethedesignofawirelesschargerbyusingMSP430F2274ultra-lowpow-ermicrocontrollerasthemonitoringcontrolcenterofenergytransferapplyingswitchestocontrolthechargingspeedandthischargerhasthefunctionofrapidchargingandnormalchargingitwillbeautomaticallystoppedafterbeingfullycharged.ACorDCpowersuppliesarebothOKwiththepriorityofACandautomaticswitchoverofACandDCandusingthelow-powerOCM126864-9LCDasthedisplayofvoltageandchargingtime.Thisdesignsystemhasadvantagesofwirelesscharginggoodenergytransfereffectbeingeasytocarrylowcostnowiringanditwillhaveabroadprospectofapplication.KeywordsMSP430microcontrollerwirelesschargerdesign·54·8MATLAB