Hello, I need 65000 random number between 0 to 255. I can't create it with linspace Thanks

 Réponse acceptée

Roger Stafford
Roger Stafford le 25 Avr 2016

0 votes

If you mean random integers,
R = randi([0,255],65000,1);
If you mean random real numbers,
R = 255*rand(65000,1);

Plus de réponses (0)

Catégories

En savoir plus sur Random Number Generation dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by