필터 지우기
필터 지우기

Random variable with log-normal distribution

조회 수: 8 (최근 30일)
Oliver Lestrange
Oliver Lestrange 2020년 8월 27일
댓글: Tariq Islam 2022년 2월 22일
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.

답변 (1개)

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

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by