簡體   English   中英

在信號中添加相位噪聲

[英]Adding phase noise in signal

我想在Matlab中實現相位噪聲。 誰能告訴我為什么我看不到頻譜在頻域上的擴展。 請幫助我。在代碼中,首先我在頻域上繪制了簡單信號,然后定義了兩個噪聲成分,一個是同步的,第二個是累加噪聲的成分並添加到信號中。

fs = 200;
ts = 1/fs;
t = 0:ts:10000-ts;
fc = 50;
S = cos(2*pi*fc*t);                    %%% equation 7.1 noisless
L = length(S);
nfft = L*100;
res = fft(S,nfft)/nfft; % resize into nfft nr of element % normalize the amplitude
f = fs/2*linspace(0,1,nfft/2+1);
res = res(1:nfft/2+1);
figure, plot(f,abs(res));

sigma = 0.2;
phi_sync =  sigma * randn(1,length(t));   %%%% random variable with gaussian distributed
phi_acc = sigma * randn(1,length(t));   %%%% random variable with gaussian distributed
% h = 0;

for i=1:length(S)
    h = phi_sync + phi_acc(i);
end

S1 = cos(2*pi*fc*t + h);

L = length(S1);
nfft = L*100;
res = fft(S1,nfft)/nfft; % resize into nfft nr of element % normalize the amplitude
f = fs/2*linspace(0,1,nfft/2+1);
res = res(1:nfft/2+1);
figure, plot(f,abs(res))
return

(從評論部分復制)

增大噪聲,例如,將sigma設置為1.2,您將獲得一個頻譜,該頻譜的噪聲會散布在整個頻率范圍內。 相位噪聲只是頻率噪聲的另一種“表示”,因此肯定會擴大頻譜。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM