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!