How to generate white noise with certain power spectral density using wgn function?
29 次查看(过去 30 天)
显示 更早的评论
wgn function has three arguments: wgn(m,n,power)
If I want to generate a white noise time series with power spectral density S0, whould I set "power" equal to S0?
Many thanks
0 个评论
回答(1 个)
Ashutosh Singh Baghel
2021-12-20
编辑:Ashutosh Singh Baghel
2021-12-20
Hi Wei,
I understand you wish to generate white noise samples in volts. This can be done using 'wgn' function.
m = 1000; % Number of white Gaussian noise samples
n = 1; % Number of channels desired
power = -6; % Power of noise samples
wgnoise = wgn(m,n,power);
var(wgnoise)
Power of noise samples, is specified as a scalar. The default unit for power is dBW.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!