Version:

Computes the length of a numeric object or string. The length of an array of any dimension is the number of the largest dimension in the array. The length of a string is the number of characters in the string.

## Syntax

n = length(a)

## a

Array of any dimension of any data type.

## n

Length of a. n is a scalar.