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
22caa866
Commit
22caa866
authored
Mar 08, 2013
by
Stéphane Adjemian
Browse files
Allows syntax like db = A.data(:,3:15), where A is a dynSeries object.
parent
1c29970c
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynSeries/subsref.m
View file @
22caa866
...
...
@@ -120,6 +120,11 @@ if (length(S)==2) && (isequal(S(1).subs,'init'))
return
end
if
(
length
(
S
)
==
2
)
&&
(
isequal
(
S
(
1
).
type
,
'.'
))
&&
(
isequal
(
S
(
1
).
subs
,
'
data
'
))
&&
(
isequal
(
S
(
2
).
type
,
'
()
'
))
us
=
builtin
(
'
subsref
'
,
ts
.
data
,
S
(
2
));
return
end
if
(
length
(
S
)
==
1
)
&&
isequal
(
S
(
1
).
type
,
'
{}
'
)
us
=
extract
(
ts
,
S
(
1
).
subs
{
:
});
return
...
...
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