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
Johannes Pfeifer
dynare
Commits
1edb4c6d
Commit
1edb4c6d
authored
Sep 05, 2013
by
Stéphane Adjemian
Browse files
Added condition on dynSeries::lag method (input must be positive).
parent
29753503
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynSeries/lag.m
View file @
1edb4c6d
...
...
@@ -44,6 +44,10 @@ if nargin<2
p
=
1
;
end
if
p
<=
0
error
(
'
dynSeries
::
lag
:
Second
input
argument
must
be
strictly
positive
!
Use
lead
method
instead
.
'
)
end
%
Copy
of
ts
dynSeries
object
us
=
ts
;
...
...
Write
Preview
Supports
Markdown
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