Added test in @dynSeries/check method.

time-shift
Stéphane Adjemian (Charybdis) 2013-03-25 07:44:29 +01:00
parent 12517aa9f4
commit 13ffe7d52c
1 changed files with 8 additions and 0 deletions

View File

@ -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