Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sébastien Villemot
dseries
Commits
0ab5d352
Commit
0ab5d352
authored
Sep 23, 2017
by
Stéphane Adjemian
Browse files
Allow 0 as an argument in lead and lag methods.
parent
113314b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/@dseries/lag_.m
View file @
0ab5d352
...
...
@@ -46,8 +46,8 @@ if nargin<2
end
% Check second input argument
if
p
<
=
0
error
(
'dseries:WrongInputArguments'
,
'Second input argument must be
strictly posi
tive! Use lead method instead.'
)
if
p
<
0
error
(
'dseries:WrongInputArguments'
,
'Second input argument must be
non nega
tive! Use lead method instead.'
)
end
if
~
isint
(
p
)
...
...
src/@dseries/lead_.m
View file @
0ab5d352
...
...
@@ -46,8 +46,8 @@ if nargin<2
end
% Check second input argument
if
p
<
=
0
error
(
'dseries:WrongInputArguments'
,
'Second input argument must be
strictly posi
tive! Use lag method instead.'
)
if
p
<
0
error
(
'dseries:WrongInputArguments'
,
'Second input argument must be
non nega
tive! Use lag method instead.'
)
end
if
~
isint
(
p
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment