Commit 13ffe7d5 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Added test in @dynSeries/check method.

parent 12517aa9
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment