random numbers in between two ranges
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mudasir Ahmed
il 13 Giu 2015
Commentato: Mudasir Ahmed
il 13 Giu 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 Commenti
Risposta accettata
Azzi Abdelmalek
il 13 Giu 2015
Modificato: Azzi Abdelmalek
il 13 Giu 2015
a=20
b=50
n=1000
v=a+(b-a)*rand(1,n)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!