Random variable with log-normal distribution

Hi,
I need to calculate a random variable with log-normal distribution with zero mean and standard deviation of 4 dB.
How can I do this?
I've tried
lognrnd(0,16)
But can give values to high or to low., and I don't want that, it should be something like 6, 8, 2 dB I guess.

Antworten (1)

Star Strider
Star Strider am 27 Aug. 2020

0 Stimmen

Try this:
v = lognrnd(0, db2mag(4), [1,7]) % Convert 4dB’ To Magnitude, Then Calculate
vdB = db(v2) % Convert Results To dB’
.

1 Kommentar

Tariq Islam
Tariq Islam am 22 Feb. 2022
@ Star Strider...I am using linear scale for my simulations. Can is use "v" directly in my formula?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Aug. 2020

Kommentiert:

am 22 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by