From 895c8d5348c1a88b1ff130d4aead5d95be3e4f0b Mon Sep 17 00:00:00 2001 From: Ferhat Mihoubi <ferhat.mihoubi@univ-evry.fr> Date: Thu, 13 Jun 2013 11:04:52 +0200 Subject: [PATCH] Allows to compute the sum of two dynSeries with different starting dates --- matlab/@dynSeries/plus.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/@dynSeries/plus.m b/matlab/@dynSeries/plus.m index 9d6482c8f6..d60d51d6a4 100644 --- a/matlab/@dynSeries/plus.m +++ b/matlab/@dynSeries/plus.m @@ -40,7 +40,7 @@ function A = plus(B,C) % along with Dynare. If not, see <http://www.gnu.org/licenses/>. % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr - +[B, C] = align(B, C); if ~isequal(B.vobs,C.vobs) && ~(isequal(B.vobs,1) || isequal(C.vobs,1)) error(['dynSeries::plus: Cannot add ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!']) else -- GitLab