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
Dóra Kocsis
dynare
Commits
b7ff26c8
Commit
b7ff26c8
authored
Jun 13, 2013
by
Ferhat Mihoubi
Committed by
Stéphane Adjemian
Jun 17, 2013
Browse files
Correct the way to handle the frequencies when a number of periods is added to a dynDate
parent
a190f3f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDate/plus.m
View file @
b7ff26c8
...
@@ -67,10 +67,10 @@ switch a.freq
...
@@ -67,10 +67,10 @@ switch a.freq
c
.
time
(
1
)
=
a
.
time
(
1
)
+
b
-
1
;
c
.
time
(
1
)
=
a
.
time
(
1
)
+
b
-
1
;
case
{
4
,
12
,
52
}
case
{
4
,
12
,
52
}
c
=
a
;
c
=
a
;
n1
=
b
;
n1
=
b
+
a
.
time
(
2
)
;
n2
=
floor
(
n1
/
a
.
freq
);
n2
=
floor
(
(
n1
-
1
)
/
a
.
freq
);
n3
=
mod
(
n1
,
a
.
freq
);
n3
=
mod
(
n1
-
1
,
a
.
freq
)
+
1
;
c
.
time
(
2
)
=
c
.
time
(
2
)
+
n3
-
1
;
c
.
time
(
2
)
=
n3
;
c
.
time
(
1
)
=
c
.
time
(
1
)
+
n2
;
c
.
time
(
1
)
=
c
.
time
(
1
)
+
n2
;
otherwise
otherwise
error
(
'
dynDate
::
plus
:
Unknown
frequency
!
'
)
error
(
'
dynDate
::
plus
:
Unknown
frequency
!
'
)
...
...
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