generate and plo gaussian random sequence
12 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Srijith Kasaragod
2021 年 9 月 24 日
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) + μ.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Random Number Generation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!