how can i make 10 arrays with random numbers?

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
dpb on 25 Feb 2015
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...
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.

Tags

Asked:

on 25 Feb 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!