Skip to content
Snippets Groups Projects
Commit bd0bedba authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug in @dates/colon (last years were wrong if r>0).

parent 289548d8
Branches
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ else
C.time(initperiods+(1:C.freq*q),2) = repmat(transpose(1:C.freq),q,1);
C.time(initperiods+(1:C.freq*q),1) = kron(A.time(1)+transpose(1:q),ones(C.freq,1));
if r>0
C.time(initperiods+C.freq*q+(1:r),1) = C.time(initperiods+C.freq,1)+1;
C.time(initperiods+C.freq*q+(1:r),1) = C.time(initperiods+C.freq*q,1)+1;
C.time(initperiods+C.freq*q+(1:r),2) = transpose(1:r);
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment