how to random value?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
Azzi Abdelmalek
le 3 Avr 2013
Modifié(e) : Azzi Abdelmalek
le 3 Avr 2013
n=3
a=rand*n %
2 commentaires
Voir également
Catégories
En savoir plus sur Calendar dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!