Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dynare
dseries
Commits
25eefcff
Commit
25eefcff
authored
Oct 25, 2016
by
Stéphane Adjemian (Charybdis)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed subsref (missing method interfaces).
parent
a3c6f147
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/@dseries/subsref.m
src/@dseries/subsref.m
+2
-2
No files found.
src/@dseries/subsref.m
View file @
25eefcff
...
...
@@ -70,7 +70,7 @@ switch S(1).type
error
([
'
dseries
:
:
subsref
:
'
S
(
1
).
subs
'
is
not
a
method
but
a
member
!
'
])
end
B
=
builtin
(
'
subsref
'
,
A
,
S
(
1
));
case
{'
log
','
log_
','
exp
','
exp_
','
ygrowth
','
qgrowth
','
ydiff
','
qdiff
','
abs
'
}
%
Give
"dot access"
to
public
methods
without
args
.
case
{'
log
','
log_
','
exp
','
exp_
','
ygrowth
','
qgrowth
','
ydiff
','
qdiff
','
abs
'
,'
isnan
','
firstdate
','
firstobservedperiod
'}
%
Give
"dot access"
to
public
methods
without
args
.
B
=
feval
(
S
(
1
).
subs
,
A
);
if
length
(
S
)
>
1
&&
isequal
(
S
(
2
).
type
,
'
()
'
)
&&
isempty
(
S
(
2
).
subs
)
S
=
shiftS
(
S
,
1
);
...
...
@@ -90,7 +90,7 @@ switch S(1).type
case
'
freq
'
%
Returns
an
integer
characterizing
the
data
frequency
(
1
,
4
,
12
or
52
)
B
=
A
.
dates
.
freq
;
case
{'
lag
','
lead
','
hptrend
','
hpcycle
','
chain
','
detrend
','
exist
','
mean
','
std
','
center
'
,'
firstobservedperiod
'
}
%
Methods
with
less
than
two
arguments
.
case
{'
lag
','
lead
','
hptrend
','
hpcycle
','
chain
','
detrend
','
exist
','
mean
','
std
','
center
'}
%
Methods
with
less
than
two
arguments
.
if
length
(
S
)
>
1
&&
isequal
(
S
(
2
).
type
,
'
()
'
)
if
isempty
(
S
(
2
).
subs
)
B
=
feval
(
S
(
1
).
subs
,
A
);
...
...
Write
Preview
Markdown
is supported
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