In randfixedsum function, how to generate random integer matrices?

in this function,
i want to generate random integer matrices.
how can do this?

댓글 수: 5

Generate a vector with that and reshape it to matrix.
Upon execution, matrix' elements are 'double'. It is not 'double', must be 'integer'.
Which integer data type does it need to be? int16?
ex) 4,6,7,9,10, ~~~
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Parallel Computing에 대해 자세히 알아보기

태그

질문:

2017년 3월 15일

댓글:

2017년 3월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by