Allows to compute the difference between two dynSeries with different starting dates

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

View File

@ -38,9 +38,9 @@ function A = minus(B,C)
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
[B, C] = align(B, C);
if ~isequal(B.vobs,C.vobs) && ~(isequal(B.vobs,1) || isequal(C.vobs,1))
error(['dynSeries::plus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!'])
error(['dynSeries::minus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!'])
else
if B.vobs>C.vobs
idB = 1:B.vobs;