Length of object array
length(obj)
obj
An object or an array of objects.
length(obj) returns the length of obj. It is equivalent to the command max(size(obj)).
max(size(obj))
Examine how many tasks are in the job j1.
j1
length(j1.Tasks)
ans = 9
size