size
- :
sz =size(a)¶ - :
n =size(a, dim)¶ - :
sz =size(a, d1, d2, …)¶ - :
[r, c, …] =size(…)¶ Return the dimensions of a.
With one output the result is a row vector holding every dimension. With a dimension argument the length along that dimension is returned (one when dim exceeds the number of dimensions); a vector of dimensions gives a row of lengths. With several outputs the last output holds the product of the remaining dimensions.