Commit 055ae257 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed typo.

parent 0be1b434
...@@ -42,16 +42,16 @@ function A = mtimes(B,C) ...@@ -42,16 +42,16 @@ function A = mtimes(B,C)
if isa(B,'dynSeries') && isa(C,'dynSeries') if isa(B,'dynSeries') && isa(C,'dynSeries')
% Element by element multiplication of two dynSeries object % Element by element multiplication of two dynSeries object
if ~isequal(B.vobs,C.vobs) && ~(isequal(B.vobs,1) || isequal(C.vobs,1)) if ~isequal(B.vobs,C.vobs) && ~(isequal(B.vobs,1) || isequal(C.vobs,1))
error(['dynSeries::times: Cannot add ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!']) error(['dynSeries::times: Cannot multiply ' inputname(1) ' and ' inputname(2) ' (wrong number of variables)!'])
end end
if ~isequal(B.nobs,C.nobs) if ~isequal(B.nobs,C.nobs)
error(['dynSeries::times: Cannot add ' inputname(1) ' and ' inputname(2) ' (wrong number of observations)!']) error(['dynSeries::times: Cannot multiply ' inputname(1) ' and ' inputname(2) ' (wrong number of observations)!'])
end end
if ~isequal(B.freq,C.freq) if ~isequal(B.freq,C.freq)
error(['dynSeries::times: Cannot add ' inputname(1) ' and ' inputname(2) ' (frequencies are different)!']) error(['dynSeries::times: Cannot multiply ' inputname(1) ' and ' inputname(2) ' (frequencies are different)!'])
end end
if ~isequal(B.init,C.init) if ~isequal(B.init,C.init)
error(['dynSeries::times: Cannot add ' inputname(1) ' and ' inputname(2) ' (initial dates are different)!']) error(['dynSeries::times: Cannot multiply ' inputname(1) ' and ' inputname(2) ' (initial dates are different)!'])
end end
A = dynSeries(); A = dynSeries();
A.freq = B.freq; A.freq = B.freq;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment