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

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

parent 1c29970c
...@@ -120,6 +120,11 @@ if (length(S)==2) && (isequal(S(1).subs,'init')) ...@@ -120,6 +120,11 @@ if (length(S)==2) && (isequal(S(1).subs,'init'))
return return
end 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,'{}') if (length(S)==1) && isequal(S(1).type,'{}')
us = extract(ts,S(1).subs{:}); us = extract(ts,S(1).subs{:});
return return
......
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