Skip to content
Snippets Groups Projects
Commit 895c8d53 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi
Browse files

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

parent 16a73af0
Branches
Tags
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