Random variable with log-normal distribution
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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
2022-2-22
@ Star Strider...I am using linear scale for my simulations. Can is use "v" directly in my formula?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!