how can i make 10 arrays with random numbers?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
HI i need to make 10 individual arrays and each of them must contain 200 randomly generated numbers i am struggling to do this as i am new to matlab ad can not find the right information to help me online any help would be appreciated
Answers (2)
dpb
on 25 Feb 2015
1 vote
General rule would be "don't do that!" Use a single array and refer to them by column index or if feel simply must use some name, use dynamic named structures. Do NOT "poof" variables into existence in the workplace for such a task. See the FAQ for the why nots and discussion of alternatives...
Star Strider
on 25 Feb 2015
0 votes
See the documentation on Matrix Indexing and related pages to learn how to create your arrays. See the documentation on rand, randn, and randi to see how to use the random number generators in MATLAB.
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!