how to random value?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
how to random value 2 until 3? example:
>> a=rand(1)
a =
0.8833
but i want the answer 2,3 or 2,5 or 2,6, or 3. thanks
0 Kommentare
Antworten (2)
Azzi Abdelmalek
am 3 Apr. 2013
Bearbeitet: Azzi Abdelmalek
am 3 Apr. 2013
n=3
a=rand*n %
2 Kommentare
Siehe auch
Kategorien
Mehr zu Calendar 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!