intmat

creates a random array of integers.

You are now following this Submission

Not a major breakthrough, just useful. I often need to make random matrices and then manipulate them with some function. It is easier for me to see what the manipulations have done if I am looking at integers, not floating points!

INTMAT(m,n,maxx) returns a matrix of random integers from 0 to maxx.

INTMAT(m,n) returns an m-by-n matrix of random integers from 0 to 10.

INTMAT(m) returns a m-by-m matrix of integers from 0 to 10.

Cite As

Matt Fig (2026). intmat (https://se.mathworks.com/matlabcentral/fileexchange/9258-intmat), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Random Number Generation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Made it work more like rand.