Allows to compute the sum of two dynSeries with different starting dates
parent
eb7c28f2d7
commit
2faca37231
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue