How to generate a fixed number of float numbers and their sum is a fixed float number?

 採用された回答

Image Analyst
Image Analyst 2020 年 2 月 16 日
編集済み: Image Analyst 2020 年 2 月 16 日

0 投票

See this File Exchange submission:

その他の回答 (1 件)

Bhaskar R
Bhaskar R 2020 年 2 月 16 日
This can help you !
res = randfixedsum(9, 1, 0.7, 0,1)

1 件のコメント

Jiajie Zhang
Jiajie Zhang 2020 年 2 月 19 日
Thank you so much, that solves my problem perfectly.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File 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