Random variable with log-normal distribution

1 visualización (últimos 30 días)
Oliver Lestrange
Oliver Lestrange el 27 de Ag. de 2020
Comentada: Tariq Islam el 22 de Feb. de 2022
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.

Respuestas (1)

Star Strider
Star Strider el 27 de Ag. de 2020
Try this:
v = lognrnd(0, db2mag(4), [1,7]) % Convert 4dB’ To Magnitude, Then Calculate
vdB = db(v2) % Convert Results To dB’
.
  1 comentario
Tariq Islam
Tariq Islam el 22 de Feb. de 2022
@ Star Strider...I am using linear scale for my simulations. Can is use "v" directly in my formula?

Iniciar sesión para comentar.

Categorías

Más información sobre Curve Fitting Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by