How to generate white noise with certain power spectral density using wgn function?
52 views (last 30 days)
Ashutosh Singh Baghel on 20 Dec 2021
Edited: Ashutosh Singh Baghel on 20 Dec 2021
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);
Power of noise samples, is specified as a scalar. The default unit for power is dBW.
Please refer to MATLAB Documentation link of 'wgn(m,n,power)' function.