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
691c3b79
Commit
691c3b79
authored
Mar 29, 2013
by
Houtan Bastani
Browse files
dynDates: bug fix
parent
4cab2724
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDates/subsref.m
View file @
691c3b79
...
...
@@ -74,7 +74,7 @@ switch S(1).type
error
([
'
dynDates
:
:
subsref
:
the
index
have
to
be
a
positive
integer
less
than
or
equal
to
'
int2str
(
A
.
ndat
)
'!'
])
end
else
if
isvector
(
S
(
1
).
subs
{
1
})
&&
all
(
isint
(
S
(
1
).
subs
{
1
}))
&&
all
(
S
(
1
).
subs
{
1
}
>
0
)
&&
all
(
S
(
1
).
subs
{
1
}
<
A
.
ndat
)
if
isvector
(
S
(
1
).
subs
{
1
})
&&
all
(
isint
(
S
(
1
).
subs
{
1
}))
&&
all
(
S
(
1
).
subs
{
1
}
>
0
)
&&
all
(
S
(
1
).
subs
{
1
}
<
=
A
.
ndat
)
B
=
dynDates
();
B
.
freq
=
A
.
freq
;
B
.
time
=
A
.
time
(
S
(
1
).
subs
{
1
},
:
);
...
...
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