How can I create a random array from a distribution?
3 ビュー (過去 30 日間)
古いコメントを表示
I was wondering how can I create an array of certain dimensions (i.e. 1000x1) from a distribution object?
0 件のコメント
採用された回答
the cyclist
2015 年 10 月 23 日
N = 1000;
pd = makedist('Normal','mu',75,'sigma',10);
r = pd.random(N,1);
4 件のコメント
the cyclist
2015 年 10 月 23 日
I'm not sure exactly what you mean. A truncated normal is not a normal. Maybe you need something like a beta distribution, where you can choose parameters that make it symmetric, but it has a finite range?
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!