In randfixedsum function, how to generate random integer matrices?
古いコメントを表示
in this function,
i want to generate random integer matrices.
how can do this?
5 件のコメント
KSSV
2017 年 3 月 15 日
Generate a vector with that and reshape it to matrix.
Brian Kim
2017 年 3 月 15 日
Walter Roberson
2017 年 3 月 15 日
Which integer data type does it need to be? int16?
Brian Kim
2017 年 3 月 16 日
Walter Roberson
2017 年 3 月 16 日
As I indicated, the routine you are looking at is not suitable for the case where you need the random values to be integral. The link I provided shows the needed code.
回答 (1 件)
Walter Roberson
2017 年 3 月 15 日
0 投票
randfixedsum cannot be used to generate integers fairly.
カテゴリ
ヘルプ センター および File Exchange で Parallel Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!