diff --git a/matlab/@dates/subsref.m b/matlab/@dates/subsref.m index 6ceaf8396..7b4c54d94 100644 --- a/matlab/@dates/subsref.m +++ b/matlab/@dates/subsref.m @@ -37,7 +37,7 @@ switch S(1).type error(['dates::subsref: ' S(1).subs ' is not a method but a member!']) end B = builtin('subsref', A, S(1)); - case {'sort','unique','double'}% Public methods (without arguments) + case {'sort','unique','double','isempty'}% Public methods (without arguments) B = feval(S(1).subs,A); if length(S)>1 && isequal(S(2).type,'()') && isempty(S(2).subs) S = shiftS(S);