generate white gaussian noise
3 views (last 30 days)
I want to generate a white gaussian noise vector by following the example given in Mathwork website:
However, I always obtained the following message:
'wgn' requires Communications Toolbox.
When I clicked Comminications Toolbox, it shows the page with the above example. What is the problem?
Thanks for any helps.
David Goodmanson on 29 Jun 2022
Edited: David Goodmanson on 29 Jun 2022
Since white gaussian noise is just random draws from a normal distribution, you don't really need some toolbox or other, you can make your own (different example from yours):
P = 1e-3; % power in watts assuming x is the voltage across a 1 ohm resistor
x = sqrt(P)*randn(1,10000);
format short g
ans = 0.0010206 % close to 1e-3