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!