How to generate Zero mean and unit variance
古いコメントを表示
I'm not sure how to generate 1024 samples of pseudo random numbers with zero mean and unit variance using rand and to verify the results with mean, std, and hist.
2 件のコメント
the cyclist
2014 年 9 月 18 日
What distribution do you want? Uniform? Normal? Something else?
Dick Rusell
2014 年 9 月 18 日
採用された回答
その他の回答 (2 件)
the cyclist
2014 年 9 月 18 日
編集済み: the cyclist
2014 年 9 月 18 日
randn(1024,1)
will generate 1,024 normally distributed values from a population with zero mean and unit variance.
3 件のコメント
Dick Rusell
2014 年 9 月 18 日
soumya dwibedy
2021 年 2 月 16 日
how to generate 1000 normally distributed values with (2 7 )mean and unit variance
the cyclist
2021 年 2 月 19 日
It's usually better to post a new question, than a comment on a 6-year-old one (even though this is related). People won't typically see a comment buried in an old post. It was just lucky that I did.
I don't understand what you mean by "(2 7)mean". Did you you mean just "27"?
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!