Generate random number between 0 and a non-integer value

조회 수: 3 (최근 30일)
Matt
Matt 2015년 9월 11일
댓글: Matt 2015년 9월 11일
For my project I need to generate a random number between 0 and a non-integer value (eg. 0.854, 2.534). How can I do that in Matlab?

채택된 답변

James Tursa
James Tursa 2015년 9월 11일
편집: James Tursa 2015년 9월 11일
rand * your_non_integer_value
  댓글 수: 1
Matt
Matt 2015년 9월 11일
Fair play, and stupid me, when I think about it it is easy. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by