Commit c858b366 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Added dot access to format method (dynDate).

parent c6f3f531
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment