Some Basic Matrices
Create basic matrices.
eye(n, m = n) ones(n, m = n) zeros(n, m = n)
m, n |
numeric scalars specifying size of the matrix |
Matrix of size n x m
.
Defaults to a square matrix if m
is missing.
No dropping of dimensions; if n = 1
, still returns a matrix and
not a vector.
Diag
,
eye(3) ones(3, 1) zeros(1, 3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.