Commit 409675ce authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Modified @dynSeries/mrdivide method so that dynSeries objects defined over...

Modified @dynSeries/mrdivide method so that dynSeries objects defined over different non disjoint periods can be divided.
parent 3b3d753d
......@@ -55,14 +55,11 @@ if isa(B,'dynSeries') && isa(C,'dynSeries')
idC = 1:C.vobs;
end
end
if ~isequal(B.nobs,C.nobs)
error(['dynSeries::times: Cannot divide ' inputname(1) ' and ' inputname(2) ' (wrong number of observations)!'])
end
if ~isequal(B.freq,C.freq)
error(['dynSeries::times: Cannot divide ' inputname(1) ' and ' inputname(2) ' (frequencies are different)!'])
end
if ~isequal(B.init,C.init)
error(['dynSeries::times: Cannot divide ' inputname(1) ' and ' inputname(2) ' (initial dates are different)!'])
if ~isequal(B.nobs,C.nobs) || ~isequal(B.init,C.init)
[B, C] = align(B, C);
end
A = dynSeries();
A.freq = B.freq;
......
Supports Markdown
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