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
ce400706
Commit
ce400706
authored
Sep 03, 2013
by
Stéphane Adjemian
Browse files
Added test for integer input (dynDate constructor with one numeric input).
parent
0f10880d
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDate/dynDate.m
View file @
ce400706
...
...
@@ -131,7 +131,7 @@ switch nargin
elseif
isa
(
a
,
'
dynDate
'
)
%
If
input
argument
is
a
dynDate
object
then
do
a
copy
.
date
=
a
;
else
if
isequal
(
length
(
a
),
1
)
&&
isnumeric
(
a
)
if
isequal
(
length
(
a
),
1
)
&&
isnumeric
(
a
)
&&
isint
(
a
)
%
If
b
is
not
a
string
then
yearly
data
are
assumed
.
date
.
freq
=
1
;
date
.
time
(
1
)
=
a
;
...
...
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