Commit 2faca372 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi Committed by Stéphane Adjemian
Browse files

Allows to compute the sum of two dynSeries with different starting dates

parent eb7c28f2
......@@ -40,7 +40,7 @@ function A = plus(B,C)
% along with Dynare. If not, see <>.
% 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)!'])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment