MATLAB: How to generate multiple random samples of size 200

normal distributionrandom samples

I want to generate multiple (say 1000) random samples from the normal distribution each of size 200. How do I achieve that. Thanks!

Best Answer

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.