do not support the length operator on a dseries
The original problem encounered was the following
ds = dseries();
isempty(ds) && length(ds) == 1
This is unexpected in Matlab, given that empty cells and arrays have length equal to 0
:
isempty({}) && length({}) == 0
and
isempty([]) && length([]) == 0
But then I realized length
was not supported at all. However, thinking about it a bit more, length
seems confusing when applied to dseries
, hence I think it should return an error instructing the user to use nobs
or vobs
instead.