AWGN函式詳解 (matlab)
阿新 • • 發佈:2019-02-05
awgn
將白色高斯噪聲新增到訊號中
語法
y = awgn(x,snr)
y = awgn(x,snr,sigpower)
y = awgn(x,snr,'measured')
y = awgn(x,snr,sigpower,state)
y = awgn(x,snr,'measured',state)
y = awgn(...,powertype)
描述
y = awgn(x,snr)將白高斯噪聲新增到向量訊號x中。標量snr指定了每一個取樣點訊號與噪聲的比率,單位為dB。如果x是複數的,awgn將會新增複數噪聲。這個語法假設x的能量是0dBW。
y = awgn(x,snr,sigpower)和上面的語法相同,除了sigpower是x的能量,單位為dBW。
y = awgn(x,snr,'measured')和y = awgn(x,snr)是相同的,除了agwn在新增噪聲之前測量了x的能量。
y = awgn(x,snr,sigpower,state)和y = awgn(x,snr,sigpower)是相同的,除了awgn首先重置了正態隨機數產生器randn的狀態為整數狀態。
y = awgn(x,snr,'measured',state)和y = awgn(x,snr,'measured')是相同的,除了awgn首先重置了正態隨機數產生器randn的狀態為整數狀態。
y = awgn(...,powertype)和前面的語法相同,除了字串powertype指定了snr和sigpower的單位。powertype的選擇有'db' and 'linear',如果powertype是'db',那麼snr是按照dB為單位測量的,sigpower是按照dBW為單位測量的。如果powertype是線性的,snr是按照一個比率測量的,sigpower是以瓦特為單位測量的。Relationship
Among SNR, Es/N0, and Eb/N0
對於SNR和其他的噪聲相對能量測量的關係,檢視Describing the Noise Level of an AWGN Channel。
例子
The commands below add white Gaussian noise to a sawtooth signal. It then plots the original and noisy signals.
t = 0:.1:10;
x = sawtooth(t); % Create sawtooth signal.
y = awgn(x,10,'measured'); % Add white Gaussian noise.
plot(t,x,t,y) % Plot both signals.
legend('Original signal','Signal with AWGN');
Several other examples that illustrate the use of awgn are in Getting Started. The following demos also use awgn: basicsimdemo, vitsimdemo, and scattereyedemo. See Also wgn, randn, bsc, AWGN Channel
Several other examples that illustrate the use of awgn are in Getting Started. The following demos also use awgn: basicsimdemo, vitsimdemo, and scattereyedemo. See Also wgn, randn, bsc, AWGN Channel