Allow 0 as an argument in lead and lag methods.

parent 6b77c21c
......@@ -44,7 +44,7 @@ if nargin<2
p = 1;
end
if p<=0
if p<0
error('dseries::lag: Second input argument must be strictly positive! Use lead method instead.')
end
......
......@@ -44,7 +44,7 @@ if nargin<2
p = 1;
end
if p<=0
if p<0
error('dseries::lead: Second input argument must be strictly positive! Use lag method instead.')
end
......
Markdown is supported
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