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 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeRandom Number Generation についてさらに検索

質問済み:

2016 年 4 月 25 日

回答済み:

2016 年 4 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by