lundi 18 septembre 2017

Fill a matrix with random values between (-1,1)

I'm new to matlab and trying to learn how to simulate random numbers.

Is there a simple way to create a 10x20 array filled with random numbers from the uniform (-1,1) distribution.

I've seen the rand function, but I'm not sure how to change the uniform (0,1) distribution to (-1,1)




Aucun commentaire:

Enregistrer un commentaire