Commit 0ab5d352 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Allow 0 as an argument in lead and lag methods.

parent 113314b0
......@@ -46,8 +46,8 @@ if nargin<2
end
% Check second input argument
if p<=0
error('dseries:WrongInputArguments','Second input argument must be strictly positive! Use lead method instead.')
if p<0
error('dseries:WrongInputArguments','Second input argument must be non negative! Use lead method instead.')
end
if ~isint(p)
......
......@@ -46,8 +46,8 @@ if nargin<2
end
% Check second input argument
if p<=0
error('dseries:WrongInputArguments','Second input argument must be strictly positive! Use lag method instead.')
if p<0
error('dseries:WrongInputArguments','Second input argument must be non negative! Use lag method instead.')
end
if ~isint(p)
......
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