Returns the dimensions of an input.
c = size(a)
d = size(a, dim)
[m, n] = size(a)
[m, n, ...] = size(a)
Scalar or array of any dimension.
Dimension whose size you want to return. dim can be in a range of 1 to the maximum supported array dimension (32).
Size of the dim dimension of a. d is a scalar.
Size of the first dimension of a. m is a scalar.
Size of the second dimension of a. n is a scalar.
Size of further dimensions. ... is a scalar.