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

Cosmetic change.

parent dc54c3fd
......@@ -229,13 +229,9 @@ switch S(1).type
% Extract a subsample using a dates object
[junk,tdx] = intersect(A.dates.time,Dates.time,'rows');
B = dseries(); =,:); =;
B.tex = A.tex;
B.dates = A.dates(tdx);
B.ops = A.ops;
B.tags = A.tags;
B = copy(A); =,:);
B.dates = B.dates(tdx);
elseif isvector(S(1).subs{1}) && all(isint(S(1).subs{1}))
error('dseries::subsref: It is not possible to select observations with a vector of integers. You have to index with a dates object instead!');
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