
Randomly initialise a matrix with numbers between 0 and 1?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to initialise a 2*5 matrix with values between 0 and 1. Is there any easy way to do this?
0 Kommentare
Antworten (1)
Manvi Goel
am 6 Jun. 2019
You can initialise a random matrix with uniform distribution between 0 and 1 by the following:
randomMatrix = rand(2,5)

0 Kommentare
Siehe auch
Kategorien
Mehr zu Random Number Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!