From eb7c28f2d7b704f221f5416fe9cab68c69553e56 Mon Sep 17 00:00:00 2001 From: Ferhat Mihoubi Date: Thu, 13 Jun 2013 11:04:05 +0200 Subject: [PATCH] Allows to compute the difference between two dynSeries with different starting dates --- matlab/@dynSeries/minus.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/@dynSeries/minus.m b/matlab/@dynSeries/minus.m index 0731729f0..fde3a68c1 100644 --- a/matlab/@dynSeries/minus.m +++ b/matlab/@dynSeries/minus.m @@ -38,9 +38,9 @@ function A = minus(B,C) % % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . - +[B, C] = align(B, C); if ~isequal(B.vobs,C.vobs) && ~(isequal(B.vobs,1) || isequal(C.vobs,1)) - error(['dynSeries::plus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!']) + error(['dynSeries::minus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!']) else if B.vobs>C.vobs idB = 1:B.vobs;