Fixed bug (returned argument not assigned).

time-shift
Stéphane Adjemian (Charybdis) 2013-10-12 13:07:41 +02:00
parent 5c8d335b0e
commit cce8b1adc6
1 changed files with 3 additions and 3 deletions

View File

@ -34,6 +34,6 @@ function B = mtimes(A,n)
if ~(isscalar(n) && isint(n))
error('dynDates::m: First and second input arguments have to be a dynDates object and a scalar integer!')
end
A.time = repmat(A.time,n,1);
A.ndat = A.ndat*n;
B = A;
B.time = repmat(A.time,n,1);
B.ndat = A.ndat*n;