* matlab/@dynDates/subsref.m: adding sub_sample subsref to dynDates

time-shift
Michel Juillard 2013-01-13 10:24:16 +01:00
parent e6541dabcc
commit 842b8875f2
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ if isequal(S(1).type,'.')
otherwise
error('dynTime::subsref: Unknown public method or member!')
end
elseif isequal(S.type,'()') % Extract a sub-sample.
if length(S.subs)==1
S.subs = [S.subs, ':'];
end
B = builtin('subsref', A.time, S);
else
error('dynTime::subsref: Something is wrong in your syntax!')
end