Generate random number between 0 and a non-integer value

2 ビュー (過去 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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by