generate and plo gaussian random sequence
显示 更早的评论
I want to generate and plot Gaussian random sequence whose samples are independent with mean 5 and variance 2. Generate 1000 samples.
and estimating the mean and variance 

I don't have any experience for this method
回答(1 个)
Srijith Kasaragod
2021-9-24
0 个投票
Hi,
You can use 'randn' function to generate gaussian random sequence with mean 1 and variance 0 and transform it to desired mean(μ) and variance(
) using the relation:
randn(1,n) + μ.
类别
在 帮助中心 和 File Exchange 中查找有关 Random Number Generation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!