I need Random many numbers
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Dani D
il 25 Apr 2016
Risposto: Roger Stafford
il 25 Apr 2016
Hello, I need 65000 random number between 0 to 255. I can't create it with linspace Thanks
0 Commenti
Risposta accettata
Roger Stafford
il 25 Apr 2016
If you mean random integers,
R = randi([0,255],65000,1);
If you mean random real numbers,
R = 255*rand(65000,1);
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Random Number Generation 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!