Version:

Returns the dimensions of an input.

## Syntax

c = size(a)
d = size(a, dim)
[m, n] = size(a)
[m, n, ...] = size(a)

## a

Scalar or array of any dimension.

## dim

Dimension whose size you want to return. dim can be in a range of 1 to the maximum supported array dimension (32).

## c

Dimensions of a.

## d

Size of the dim dimension of a. d is a scalar.

## m

Size of the first dimension of a. m is a scalar.

## n

Size of the second dimension of a. n is a scalar.

## ...

Size of further dimensions. ... is a scalar.