Elementary Matrices and Arrays
Built-in functions › Mathematics › Elementary Matrices and Arrays
19 functions in this category.
| Function | What it does |
|---|---|
eye | Identity matrix. |
false | Logical array of all false. |
ind2sub | Convert a linear index to N-dimensional subscripts. |
inf | Array of Inf values. |
linspace | Vector of equally spaced points between two endpoints. |
logspace | Vector of logarithmically (base-10) spaced points. |
magic | Magic square — square matrix where every row, column, and diagonal sums to the same value. |
nan | Array of NaN values. |
ones | Array of all ones. |
pascal | Pascal matrix — symmetric matrix of binomial coefficients. |
rand | Uniformly distributed random numbers in [0, 1]. |
randh | Random Hermitian (complex symmetric) matrix. |
randi | Uniformly distributed random integers. |
randn | Standard-normal random numbers (mean 0, variance 1). |
rands | Random symmetric matrix. |
strings | Array of empty strings. |
sub2ind | Convert N-dimensional subscripts to a single linear index. |
true | Logical array of all true. |
zeros | Array of all zeros. |