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
037ec55d
Commit
037ec55d
authored
Jun 07, 2013
by
Houtan Bastani
Browse files
dynDate: add missing case to throw error if another char is passed
parent
b5eb134a
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDate/dynDate.m
View file @
037ec55d
...
...
@@ -105,6 +105,8 @@ switch nargin
end
else
switch
a
case
'Y'
date
.
freq
=
1
;
case
'Q'
date
.
freq
=
4
;
case
'M'
...
...
@@ -112,8 +114,9 @@ switch nargin
case
'W'
date
.
freq
=
52
;
otherwise
%
Yearly
data
are
assumed
.
date
.
freq
=
1
;
error
([
'
dynDate
:
:
With
one
string
argument
of
length
one
,
'
...
'
you
must
provide
one
of
weekly
(
'
'W'
'
),
monthly
(
'
'M'
'
),
'
...
'
quaterly
(
'
'Q'
'
)
or
yearly
(
'
'Y'
'
).
'
]);
end
end
elseif
isa
(
a
,
'
dynDate
'
)
%
If
input
argument
is
a
dynDate
object
then
do
a
copy
.
...
...
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