length

Length of object array

Syntax

length(obj)

Arguments

obj

An object or an array of objects.

Description

length(obj) returns the length of obj. It is equivalent to the command max(size(obj)).

Examples

Examine how many tasks are in the job j1.

length(j1.Tasks)
ans =
     9

See Also

Introduced before R2006a

Was this topic helpful?