Allows syntax like db = A.data(:,3:15), where A is a dynSeries object.

time-shift
Stéphane Adjemian (Charybdis) 2013-03-08 17:46:28 +01:00
parent 1c29970c6d
commit 22caa866b7
1 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,11 @@ if (length(S)==2) && (isequal(S(1).subs,'init'))
return
end
if (length(S)==2) && (isequal(S(1).type,'.')) && (isequal(S(1).subs,'data')) && (isequal(S(2).type,'()'))
us = builtin('subsref',ts.data,S(2));
return
end
if (length(S)==1) && isequal(S(1).type,'{}')
us = extract(ts,S(1).subs{:});
return