diff --git a/matlab/@dynSeries/check.m b/matlab/@dynSeries/check.m index 0f88e081a..02525ec3b 100644 --- a/matlab/@dynSeries/check.m +++ b/matlab/@dynSeries/check.m @@ -75,4 +75,12 @@ if ~isequal(numel(unique(A.tex)),numel(A.tex)); message = ['dynSeries: The variable tex names in dynSeries object ''' inputname(1) ''' are not unique!']: end return +end + +if ~eq(A.time,A.init:A.init+A.nobs) + error_flag = 1; + if nargout>1 + message = ['dynSeries: Wrong definition of the time member in dynSeries object ''' inputname(1) '''!']: + end + return end \ No newline at end of file