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
45b89a17
Commit
45b89a17
authored
Mar 29, 2013
by
Stéphane Adjemian
Browse files
Give dot access to the @dynSeries/size function.
parent
9f117f9d
Changes
1
Show whitespace changes
Inline
Side-by-side
matlab/@dynSeries/subsref.m
View file @
45b89a17
...
...
@@ -76,6 +76,14 @@ switch S(1).type
else
save
(
A
);
end
case
{'
size
'}
if
length
(
S
)
==
2
&&
strcmp
(
S
(
2
).
type
,
'
()
'
)
&&
~
isempty
(
S
(
2
).
subs
)
B
=
size
(
A
,
S
(
2
).
subs
{
1
}
);
S
=
shiftS
(
S
);
else
[
x
,
y
]
=
size
(
A
);
B
=
[
x
,
y
];
end
case
{'
rename
','
tex_rename
'}
B
=
feval
(
S
(
1
).
subs
,
A
,
S
(
2
).
subs
{
:
}
);
S
=
shiftS
(
S
);
...
...
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