I need to generate 16 unique random numbers between 0 and 1.3. However, randperm does not allow me to go below 1 nor does it allow decimals. Please let me know how to do this.
Thanks!

 채택된 답변

José-Luis
José-Luis 2016년 12월 15일

1 개 추천

result = rand(16,1) .* 1.3;

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

질문:

2016년 12월 15일

답변:

2016년 12월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by