Anymatrix
is a MATLAB matrix collection with an interface to organize
matrices into groups and sets. It provides commands to search for matrices
by their properties and generate matrices by their unique IDs.
Currently, the built-in collection contains 121 matrices organized into 6 groups:
- contest - the CONTEST test matrix toolbox of random matrices from networks.
- core - miscellaneous matrices.
- gallery - matrices from the MATLAB gallery.
- hadamard - a large collection of Hadamard matrices.
- matlab - other MATLAB matrices (not in gallery).
- nessie - matrices from real-life networks.
List the groups in the collection.
G = anymatrix('groups')
Show matrices in the core group.
M = anymatrix('groups', 'core')
Show help of a beta matrix in the core group.
anymatrix('help', 'core/beta')
Show properties appended to the beta matrix.
P = anymatrix('properties', 'core/beta')
Generate the 10-by-10 beta matrix.
[A, R] = anymatrix('core/beta', 10)
Start by listing all the supported properties by the anymatrix
.
P = anymatrix('properties')
Search for matrices that do not have a property 'symmetric'.
M = anymatrix('properties', 'not symmetric')
Look for matrices that are tridiagonal and not positive, or tridiagonal and symmetric.
M = anymatrix('properties', 'tridiagonal and (symmetric or not positive)')
Look for matrices that mention ' zero ' in their help comments.
M = anymatrix('lookfor', ' zero ')
For invocations that use only strings, the MATLAB command form of invocation (as opposed to the functional form) can be used:
anymatrix help 'core/beta'
Commands can be abbreviated to the first one or two letters that uniquely specify them:
anymatrix p 'core/beta'
List all the available commands and shorthand aliases of commands.
anymatrix('help')
MATLAB 2020b or newer is required.
Nicholas J. Higham and Mantas Mikaitis. Anymatrix: Extendable MATLAB Matrix Collections. In preparation.
See license.txt for licensing information.