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 Exchange에서 Random 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