How to formulate the random matrix between real interval?

I try this formulation r = randi([0.10 0.50],5,5) but Matlab refuse this. Please help me with good formulation

 채택된 답변

James Tursa
James Tursa 2019년 6월 7일

0 개 추천

See the second example in the rand doc here, and use your endpoints of 0.10 and 0.50 instead of the example endpoints of -5 and 5.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by