diff --git a/matlab/@dynSeries/minus.m b/matlab/@dynSeries/minus.m index fde3a68c1..c7e4736db 100644 --- a/matlab/@dynSeries/minus.m +++ b/matlab/@dynSeries/minus.m @@ -38,7 +38,7 @@ function A = minus(B,C) % % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -[B, C] = align(B, C); + if ~isequal(B.vobs,C.vobs) && ~(isequal(B.vobs,1) || isequal(C.vobs,1)) error(['dynSeries::minus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!']) else