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

Fixed bug in @dates/colon methood (wrong offset if r>0).

parent 09494bc0
No related branches found
No related tags found
No related merge requests found
......@@ -95,8 +95,8 @@ 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+(1:r),1) = C.time(initperiods+C.freq,1)+1;
C.time(initperiods+C.freq+(1:r),2) = transpose(1:r);
C.time(initperiods+C.freq*q+(1:r),1) = C.time(initperiods+C.freq,1)+1;
C.time(initperiods+C.freq*q+(1:r),2) = transpose(1:r);
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment