Skip to content
Snippets Groups Projects
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
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment