I need Random many numbers

2 次查看(过去 30 天)
Hello, I need 65000 random number between 0 to 255. I can't create it with linspace Thanks

采纳的回答

Roger Stafford
Roger Stafford 2016-4-25
If you mean random integers,
R = randi([0,255],65000,1);
If you mean random real numbers,
R = 255*rand(65000,1);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by