Main Content

length

(Not Recommended) Length of dataset array

The dataset data type is not recommended. To work with heterogeneous data, use the MATLAB® table data type instead. See MATLAB table documentation for more information.

Syntax

n = length(A)

Description

n = length(A) returns the number of observations in the dataset A. length is equivalent to size(A,1).

See Also