Generate random number between 0 and a non-integer value

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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2015 年 9 月 11 日

コメント済み:

2015 年 9 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by