I need Random many numbers

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

 Respuesta aceptada

Roger Stafford
Roger Stafford el 25 de Abr. de 2016

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Random Number Generation en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Abr. de 2016

Respondida:

el 25 de Abr. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by