Commit 1edb4c6d authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Added condition on dynSeries::lag method (input must be positive).

parent 29753503
......@@ -44,6 +44,10 @@ if nargin<2
p = 1;
if p<=0
error('dynSeries::lag: Second input argument must be strictly positive! Use lead method instead.')
% Copy of ts dynSeries object
us = ts;
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