random numbers in between two ranges
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mudasir Ahmed
le 13 Juin 2015
Commenté : Mudasir Ahmed
le 13 Juin 2015
hi
i want one random number generated between two ranges Like 20 and 50. i there any command who can do this. kindly help me
regards
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 13 Juin 2015
Modifié(e) : Azzi Abdelmalek
le 13 Juin 2015
a=20
b=50
n=1000
v=a+(b-a)*rand(1,n)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Random Number Generation dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!