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

time-shift
Ferhat Mihoubi 2013-06-13 11:04:52 +02:00 committed by Stéphane Adjemian (Charybdis)
parent eb7c28f2d7
commit 2faca37231
1 changed files with 1 additions and 1 deletions

View File

@ -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