Relationship between noise power in a Band-Limited White Noise block VS Variance in a Random Number block

64 次查看(过去 30 天)
What is the relationship between Noise Power in a Band-Limited White Noise block and the Variance in a Random Number block?
For example, if we use 0.1 for the former and 100 for the latter, with a sampling time of 0.001, we get the same results (besides the band limitation, which is not apparent here, but can be seen if we do a PSD; it will have a small effect, but let's forget about it).
After some numerical experiments, I guess that it is:
But what is reason/formula behind it?
I went over the documentation and googled it, but I do not find a simple formula to compute one from the other, and I feel this should be pretty simple.
Thanks
PS: the motivation is to translate specs from another software into Matlab.
  1 个评论
Jason Xie
Jason Xie 2022-2-2
The 'bandlimited white noise source' is specified by white noise's Power Spectrum Density (PSD), which is Power per Unit Frequency (V^2/Hz, power is indicated by V^2 usually in circuit design). (It is termed as Noise Power in the setting, but it is actually Power Spectrum Density)
Suppose your smallest time step (or sample time) in your Simulink is dt, then the maximum frequency range you can get is 0 to 1/dt. Noise power is specified by V^2 = (Voltage_standard_deviation)^2 = Variance. If your simulation length is N (fixed time step solver), then your frequency resolution or Unit Frequency is Fs/N.
So, set PSD = (Voltage_std)^2 / (1/dt), and set SAMPLE time as dt, run Simulink, send white noise output to workspace (array), run std() to see Voltage_std that you just set.
Plot PSD
f = Fs*linspace(0,1,N)
semilogx(f, 20*log10(abs(fft(noise)))
By doing so, it is equivalent to using 'rand number generator' by setting the same VARIANCE and SAMPLE TIME.

请先登录,再进行评论。

采纳的回答

Honglei Chen
Honglei Chen 2019-4-18
You may want to look at the Algorithm section of the following doc page
Basically the variance can be considered as 0.1/(1/0.001) which equals 100.
HTH
  4 个评论
632541
632541 2021-2-18
To feed the band limited whilte noise , what value should i give in noise power section of the block if i want to produce the noise with noise floor of 0.5nV/rtHz.?
Please clarify this..

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

产品


版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by