Matrix Manipulation
For a vector argument, return 1 if any element of the vector is nonzero.
The function `all' behaves like the function `any', except that it
returns true only if all the elements of a vector, or all the elements
along dimension DIM of a matrix, are nonzero.
Return the `exclusive or' of the entries of X and Y.
Return non-zero if any entries in X are duplicates of one another.
If X is a vector of length N, `diff (X)' is the vector of first
differences X(2) - X(1), .
Return 1 for elements of X that are infinite and zero otherwise.
Return 1 for elements of X that are NaN values and zero otherwise.
Return 1 for elements of X that are finite values and zero otherwise.
Return a vector of indices of nonzero elements of a matrix, as a row if
X is a row or as a column otherwise.
Determine if all input arguments are either scalar or of common size.
Return a copy of X with the order of the columns reversed.
Return a copy of X with the order of the rows reversed.
Return a copy of X flipped about the dimension DIM.
Return a copy of X with the elements rotated counterclockwise in
90-degree increments.
Return a copy of X with the elements rotated counterclockwise in
90-degree increments.
Return the concatenation of N-d array objects, ARRAY1, ARRAY2, .
Return the horizontal concatenation of N-d array objects, ARRAY1,
ARRAY2, .
Return the vertical concatenation of N-d array objects, ARRAY1, ARRAY2,
.
Return the generalized transpose for an N-d array object A.
The inverse of the `permute' function.
Return a matrix with the given dimensions whose elements are taken from
the matrix A.
Circularly shifts the values of the array X.
Shifts the dimension of X by N, where N must be an integer scalar.
If X is a vector, perform a circular shift of length B of the elements
of X.
Return a copy of X with the elements arranged in increasing order.
Sort the rows of the matrix A according to the order of the columns
specified in C.
swap
Not implemented.
swapcols
Not implemented.
swaprows
Not implemented.
Return a new matrix formed by extracting the lower (`tril') or upper
(`triu') triangular part of the matrix A, and setting all other
elements to zero.
Return the vector obtained by stacking the columns of the matrix X one
above the other.
Return the vector obtained by eliminating all supradiagonal elements of
the square matrix X and stacking the result one column above the other.
Prepends (appends) the scalar value C to the vector X until it is of
length L.
Build a block diagonal matrix from A, B, C, .
Execute a function on each element of an array.
Applies a binary function F element-wise to two matrix arguments A and
B.
Return an identity matrix.
Return a matrix or N-dimensional array whose elements are all 1.
Return a matrix or N-dimensional array whose elements are all 0.
Form a block matrix of size M by N, with a copy of matrix A as each
element.
Return a matrix with random elements uniformly distributed on the
interval (0, 1).
Return a matrix with normally distributed pseudo-random elements having
zero mean and variance one.
Return a matrix with exponentially distributed random elements.
Return a matrix with Poisson distributed random elements.
Return a matrix with `gamma(A,1)' distributed random elements.
Return a row vector containing a random permutation of the integers
from 1 to N.
Return a diagonal matrix with vector V on diagonal K.
Return a row vector with N linearly spaced elements between BASE and
LIMIT.
Similar to `linspace' except that the values are logarithmically spaced
from 10^base to 10^limit.
Construct a Hadamard matrix HN of size N-by-N.
Return the Hankel matrix constructed given the first column C, and
(optionally) the last row R.
Return the Hilbert matrix of order N.
Return the inverse of a Hilbert matrix of order N.
Create an N-by-N magic square.
Return the Pascal matrix of order N if `T = 0'.
Returns the Rosser matrix.
Return the Sylvester matrix of order n = 2^k.
Return the Toeplitz matrix constructed given the first column C, and
(optionally) the first row R.
Return the Vandermonde matrix whose next to last column is C.
Return the Wilkinson matrix of order N.