basic array functions

Basic operations, functions or methods which apply on any kind of matrices (numerical, strings, arrrays of cells, ...) and sometimes on other nsp objects (list, hash table,...).


basic array operations

indexing arrays - various ways of indexing arrays
sub2ind - convert multi-dimensional indexing to linear indexing
ind2sub - convert linear indexing to multi-dimensional indexing
dollar - shortcut notation for the last element
extraction assignment deletion - basic array operations
concatenation - concatenation of matrices
concatr - method, catenate a matrix by another one on the right side
concatd - method, catenate a matrix by another one on the down side
set_diag - (method) set a diagonal of a matrix
repmat - replicate a matrix


sizes, tests, reshape

size - dimensions of an array, size of some objects
length - length of an object
numel - length of an object, number of elements of an object
isvector - vector test
isscalar - scalar test
isempty - empty matrix or object test
redim - reshape a matrix
matrix - reshape a matrix
reshape - reshape a matrix


permutations and subsets

perms - generate all permutations of a vector
nchoosek - compute a binomial coefficient or all k-subsets of a set
perm_elem - (method) apply (in place) an elementary permutation to a vector or matrix