From cce8b1adc61fc455380d9184f8de70e2682fbd13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Sat, 12 Oct 2013 13:07:41 +0200 Subject: [PATCH] Fixed bug (returned argument not assigned). --- matlab/@dynDates/mtimes.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/@dynDates/mtimes.m b/matlab/@dynDates/mtimes.m index a1f38bdc1..24740b243 100644 --- a/matlab/@dynDates/mtimes.m +++ b/matlab/@dynDates/mtimes.m @@ -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; \ No newline at end of file +B = A; +B.time = repmat(A.time,n,1); +B.ndat = A.ndat*n; \ No newline at end of file