Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save quanengineering/0d3d2717625fac28a0cee740a612d275 to your computer and use it in GitHub Desktop.
Save quanengineering/0d3d2717625fac28a0cee740a612d275 to your computer and use it in GitHub Desktop.
Random integer matrix
d=3; % Change this to change the size of the matrix
n=10; % Change this to change the range of the numbers
floor(n*rand(d,d))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment