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
c858b366
Commit
c858b366
authored
Dec 07, 2012
by
Stéphane Adjemian
Browse files
Added dot access to format method (dynDate).
parent
c6f3f531
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDate/subsref.m
View file @
c858b366
...
...
@@ -90,6 +90,13 @@ if isequal(length(S),1) && isequal(S.type,'()')
end
end
%
Give
access
to
dynDate
methods
(
format
).
if
isequal
(
length
(
S
),
1
)
&&
isequal
(
S
.
type
,
'.'
)
&&
(
strcmp
(
S
.
subs
,
'
format
'
)
)
B
=
format
(
A
);
return
end
%
Give
access
to
dynDate
properties
(
time
and
freq
).
if
isequal
(
length
(
S
),
1
)
&&
isequal
(
S
.
type
,
'.'
)
&&
(
strcmp
(
S
.
subs
,
'
time
'
)
||
strcmp
(
S
.
subs
,
'
freq
'
)
)
B
=
builtin
(
'
subsref
'
,
A
,
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