フィルターのクリア

How to generate multiple random samples of size 200

3 ビュー (過去 30 日間)
Austin `
Austin ` 2014 年 3 月 19 日
コメント済み: Austin ` 2014 年 3 月 22 日
I want to generate multiple (say 1000) random samples from the normal distribution each of size 200. How do I achieve that. Thanks!

採用された回答

dpb
dpb 2014 年 3 月 19 日
rnv=randn(200,1000); % generate 1000 column samples of 200
Refer to the subsample sets as rnv(:,idx) where idx is the desired sample number. Don't even think of trying to build named variables for this.
  1 件のコメント
Austin `
Austin ` 2014 年 3 月 19 日
Thanks! That works!

サインインしてコメントする。

その他の回答 (1 件)

Viju
Viju 2014 年 3 月 19 日
One way to go about this:
x = randn(200,1000);
This generates normally distributed pseudo-random numbers between 0 and 1.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by