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
44440755
Commit
44440755
authored
Mar 13, 2013
by
Stéphane Adjemian
Browse files
Fixed bug.
parent
95f36ecc
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDates/subsref.m
View file @
44440755
...
...
@@ -69,11 +69,15 @@ if isequal(S(1).type,'.')
error
(
'
dynDates
::
subsref
:
Unknown
public
method
or
member
!
'
)
end
elseif
isequal
(
S
.
type
,
'
()
'
)
%
Extract
a
sub
-
sample
.
if
isscalar
(
S
.
subs
)
&&
isint
(
S
.
subs
{
1
})
&&
S
.
subs
{
1
}
>
0
&&
S
.
subs
{
1
}
<
A
.
ndat
B
=
dynDate
(
A
.
time
(
S
.
subs
{
1
},
:
),
A
.
freq
);
if
isscalar
(
S
.
subs
{
1
})
if
isint
(
S
.
subs
{
1
})
&&
S
.
subs
{
1
}
>
0
&&
S
.
subs
{
1
}
<
A
.
ndat
B
=
dynDate
(
A
.
time
(
S
.
subs
{
1
},
:
),
A
.
freq
);
else
error
(
'
dynDates
::
subsref
:
Something
is
wrong
in
your
syntax
!
'
)
end
else
B
=
builtin
(
'
subsref
'
,
A
.
time
,
S
);
end
else
error
(
'
dynDates
::
subsref
:
Something
is
wrong
in
your
syntax
!
'
)
end
end
\ No newline at end of file
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