mercredi 30 mars 2016

Randomly add numbers to a N x M zero matrix

I wanted to know how I can go about randomly placing numbers (up to 10 numbers) in a matrix.

I am starting with A = zeros(5,8), then randomly place the 10 random numbers around the matrix.

Thanks.




Aucun commentaire:

Enregistrer un commentaire