Skip to content
Snippets Groups Projects
Commit e6a1fbbd authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed typo.

parent 0d16bfff
No related branches found
No related tags found
No related merge requests found
......@@ -40,19 +40,19 @@ function A = minus(B,C)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
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)!'])
error(['dynSeries::plus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!'])
end
if ~isequal(B.nobs,C.nobs)
error(['dynSeries::plus: Cannot add ' inputname(1) ' and ' inputname(2) ' (wrong number of observations)!'])
error(['dynSeries::plus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (wrong number of observations)!'])
end
if ~isequal(B.freq,C.freq)
error(['dynSeries::plus: Cannot add ' inputname(1) ' and ' inputname(2) ' (frequencies are different)!'])
error(['dynSeries::plus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (frequencies are different)!'])
end
if ~isequal(B.init,C.init)
error(['dynSeries::plus: Cannot add ' inputname(1) ' and ' inputname(2) ' (initial dates are different)!'])
error(['dynSeries::plus: Cannot substract ' inputname(1) ' and ' inputname(2) ' (initial dates are different)!'])
end
if isempty(B)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment