资源描述:
《matlab信号添加噪声(adding noise to matlab signal)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、matlab信号添加噪声(AddingnoisetoMATLABsignal)[original]onthesignaltonoiseratioandtotheknownsignaladdnoisefinishingandpersonalexperienceFirstofall,I'mnottryingtodothis,butjustadddifferentnoiseinthesignalrecently,soIcollectedsomeinformationandaccumulatedsomeexperience.Youarewelcometocorrect.Whenitco
2、mestoaddingnoisetoknownsignals,thereisapostthathastobementioned,whichisthetwocommonlyusedfunctionintroducedbyProfessorhappy,andI'llquoteithere:%=============================happy=================================%ItisveryconvenienttogenerateGausswhitenoiseinMATLAB,whichcanbeapplieddirectlytot
3、wofunctions,oneisWGN,andtheotherisAWGN.WGNisusedtogenerateGausswhitenoise,andAWGNisusedtoaddGausswhitenoisetoasignal.1.WGN:produceGausswhitenoiseY=WGN(m,N,P)generatesaGausswhitenoisematrixofmrowncolumns,andPspecifiestheintensityoftheoutputnoiseinthedBWunit.Y=WGN(m,N,P,IMP)specifyloadimpedanc
4、einohms(Ohm)unit.Y=WGN(m,N,P,imp,state)resetsthestateofRANDN.Additionalsymbolicparameterscanbeaddedtothenumericalvariables:Y=wgn...(POWERTYPE)specifiestheunitofP.POWERTYPEcanbe'dBW','dBm'or'linear'.Linearintensity(linearpower)isbasedonWatt(Watt).Y=wgn...(OUTPUTTYPE)specifiestheoutputtype.OUT
5、PUTTYPEcanbe'real'or'complex'.2.AWGN:GausswhitenoiseisaddedtoasignalY=AWGN(x,SNR)addsGausswhitenoisetothesignalX.Thesignaltonoiseratio(SNR)isdB.ThestrengthofXisassumedtobe0dBW.Ifxiscomplex,complexnoiseisadded.Y=AWGN(x,SNR,SIGPOWER)ifSIGPOWERisavalue,thenitrepresentsthesignalintensityindBW;if
6、SIGPOWERis'measured',thenthefunctionwillmeasurethesignalstrengthbeforeaddingnoise.Y=AWGN(x,SNR,SIGPOWER,STATE)resetsthestateofRANDN.Y=awgn...(POWERTYPE)specifiestheunitsofSNRandSIGPOWER.POWERTYPEcanbe'dB'or'linear'.IfPOWERTYPEis'dB',thenSNRisdB,andSIGPOWERisdBW.IfPOWERTYPEis'linear',thenSNRi
7、smeasuredasaratio,andSIGPOWERisinwatts.Notes1.dB(decibel,dB):(dB)isthestandardDBunit,therelativepoweroramplitudelevelsinotherwords,weusedarepresentationoftheenergydifferencebetweenthetwounits,itisnotanabsoluteunit.Forexample,thestrengthofelectronic