In randfixedsum function, how to generate random integer matrices?
Mostrar comentarios más antiguos
in this function,
i want to generate random integer matrices.
how can do this?
5 comentarios
KSSV
el 15 de Mzo. de 2017
Generate a vector with that and reshape it to matrix.
Brian Kim
el 15 de Mzo. de 2017
Walter Roberson
el 15 de Mzo. de 2017
Which integer data type does it need to be? int16?
Brian Kim
el 16 de Mzo. de 2017
Walter Roberson
el 16 de Mzo. de 2017
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.
Respuestas (1)
Walter Roberson
el 15 de Mzo. de 2017
0 votos
randfixedsum cannot be used to generate integers fairly.
Categorías
Más información sobre Parallel Computing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!