Fixed bug (dates member was wrong).

parent a4479b5c
......@@ -55,7 +55,7 @@ CumulatedGrowthFactors = cumprod(GrowthFactor);
o.data = [o.data; bsxfun(@times,CumulatedGrowthFactors, o.data(end,:))];
o.dates = firstdate(o):firstdate(o)+nobs(o);
o.dates = firstdate(o):firstdate(o)+nobs(o)-1;
for i=1:o.vobs
if isempty(o.ops{i})
......@@ -91,6 +91,7 @@ end
%$ t(5) = dassert(ts.vobs,1);
%$ t(6) = dassert(ts.nobs,6);
%$ t(7) = isequal(ts.data,transpose(1:6));
%$ t(8) = isequal(ts.dates(end), dates('1951Q2'));
%$ end
%$
%$ T = all(t);
......
Markdown is supported
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