size
Size of an object.
Syntax
s = size(X)
sdim = size(X, dim)
vec = size(X, dims)
[r, c] = size(X)
[s1, ... , sn] = size(X)
Input argument
X - a variable
dim - a variable: a positive integer to get the dimth dimension.
dims - a variable: a vector of positive integer to get the dimth dimensions.
Output argument
s - a row vector whose elements contain the length of the corresponding dimension of X.
sdim - the length of dimension dim.
vec - length of dimensions dims.
[r, c] - number of rows and columns.
[s1, ... , sn] - numbers with integer values.
Description
Examples
See also
History
Author
Allan CORNET
Last updated