create nononteger random matrix in certain range
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
David Kenkadze
am 19 Okt. 2021
Kommentiert: David Kenkadze
am 20 Okt. 2021
Ihave to create 5X5 random noninteger matrix in the range of -100:100. I create it, but there are all integer numbers.
I need something like this
-99.8 4.5 2.2 5.7 67.6
-67.8 -20.4 e.t.c
2 Kommentare
Steven Lord
am 19 Okt. 2021
From which distribution do you want to draw these numbers? Uniform, truncated normal, or some other distribution?
All the numbers in your example have one decimal place. Is that a requirement or would something like 1.23456789 be acceptable?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices 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!