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
400a4da4
Commit
400a4da4
authored
Nov 14, 2013
by
Stéphane Adjemian
Browse files
Access the @dseries/pop method with dot notation. Fixed bug.
parent
824d1ed7
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dseries/subsref.m
View file @
400a4da4
...
...
@@ -90,13 +90,13 @@ switch S(1).type
else
B
=
feval
(
S
(
1
).
subs
,
A
);
end
case
{'
cumsum
','
insert
'}
%
Methods
with
less
than
three
argument
.
case
{'
cumsum
','
insert
'
,'
pop
'
}
%
Methods
with
less
than
three
argument
.
if
length
(
S
)
>
1
&&
isequal
(
S
(
2
).
type
,
'
()
'
)
if
isempty
(
S
(
2
).
subs
)
B
=
feval
(
S
(
1
).
subs
,
A
);
S
=
shiftS
(
S
);
else
if
length
(
S
(
2
).
subs
{
1
}
)
>
2
if
length
(
S
(
2
).
subs
)
>
2
error
([
'
dseries
:
:
subsref
:
'
S
(
1
).
subs
{
1
}
'
method
admits
no
more
than
two
arguments
!
'
])
end
B
=
feval
(
S
(
1
).
subs
,
A
,
S
(
2
).
subs
{
:
}
);
...
...
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