diff --git a/matlab/@dynDates/isempty.m b/matlab/@dynDates/isempty.m index 935d8d06c..980ff2b09 100644 --- a/matlab/@dynDates/isempty.m +++ b/matlab/@dynDates/isempty.m @@ -39,7 +39,7 @@ function B = isempty(A) % --*-- Unitary tests --*-- % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -B = all(isnan(A.time(:))) && isnan(A.freq) && isequal(A.ndat,0); +B = isequal(A.ndat,0); %@test:1 %$ % Instantiate an empty dynDate object