In randfixedsum function, how to generate random integer matrices?

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

5 Comments

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?
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.

Sign in to comment.

Categories

Find more on Parallel Computing in Help Center and File Exchange

Asked:

on 15 Mar 2017

Commented:

on 16 Mar 2017

Community Treasure Hunt

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

Start Hunting!