如何在Matlab中模拟滤波的高斯噪声?

时间:2016-02-25 01:22:15

标签: matlab signals

如何在MATLAB中找到高斯噪声的频率分量,然后对其进行滤波以获得带宽的高斯噪声?

Fs = 100;
d = fdesign.lowpass('Fp,Fst,Ap,Ast',6,10,0.5,40,Fs);
B = design(d);
%// create white Gaussian noise the length of your signal
x = randn(1000,1);
%// create the band-limited Gaussian noise
y = filter(B,x);

1 个答案:

答案 0 :(得分:0)

您可以将白高斯噪声添加到信号中:

y = awgn(x,snr) //x is your signal vector, y is the signal vector with gaussian noise, and snr is the signal-to-noise ratio in dB

有关详细信息:http://www.mathworks.com/help/comm/ref/awgn.html