How do you generate random numbers (integers) from zero to five ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Marco jacome
il 19 Apr 2015
Commentato: Star Strider
il 19 Apr 2015
Hello , I have already read from the HELP section in matlab and I am still unable to find a solution. Can someone please help !
Generate random integers that are Non -repeating
0 Commenti
Risposta accettata
Star Strider
il 19 Apr 2015
This will generate a vector of non-repeating random integers from 0 to 5:
R = randperm(6)-1
producing (in this instance):
R =
5 2 3 1 0 4
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!