Commit 82343061 authored by Stéphane Adjemian's avatar Stéphane Adjemian

Cosmetic changes.

parent b9eee16d
...@@ -82,11 +82,11 @@ elseif firstdate(o) >= firstdate(p) ...@@ -82,11 +82,11 @@ elseif firstdate(o) >= firstdate(p)
Z1 = [NaN(diff, vobs(o));o.data]; Z1 = [NaN(diff, vobs(o));o.data];
if nobs(q) > nobs(o) + diff if nobs(q) > nobs(o) + diff
Z1 = [Z1; NaN(nobs(q)-(nobs(o) + diff), vobs(o))]; Z1 = [Z1; NaN(nobs(q)-(nobs(o) + diff), vobs(o))];
end; end
Z2 = p.data; Z2 = p.data;
if nobs(q) > nobs(p) if nobs(q) > nobs(p)
Z2 = [Z2; NaN(nobs(q) - nobs(p), vobs(p))]; Z2 = [Z2; NaN(nobs(q) - nobs(p), vobs(p))];
end; end
Z = [Z1 Z2]; Z = [Z1 Z2];
q.data = Z(:,IBC); q.data = Z(:,IBC);
q_init = firstdate(p); q_init = firstdate(p);
...@@ -101,7 +101,7 @@ else ...@@ -101,7 +101,7 @@ else
Z2 = o.data; Z2 = o.data;
if nobs(q) > nobs(o) if nobs(q) > nobs(o)
Z2 = [Z2; NaN(nobs(q) - nobs(o), vobs(o))]; Z2 = [Z2; NaN(nobs(q) - nobs(o), vobs(o))];
end; end
Z = [Z2 Z1]; Z = [Z2 Z1];
q.data = Z(:,IBC); q.data = Z(:,IBC);
q_init = firstdate(o); q_init = firstdate(o);
......
...@@ -23,7 +23,6 @@ function h = plot(o, varargin) ...@@ -23,7 +23,6 @@ function h = plot(o, varargin)
if isequal(nargin,1) if isequal(nargin,1)
ndseries = 1; ndseries = 1;
nvariables = vobs(o); nvariables = vobs(o);
nobservations = nobs(o);
else else
if isdseries(varargin{1}) if isdseries(varargin{1})
ndseries = 2; ndseries = 2;
...@@ -41,7 +40,6 @@ else ...@@ -41,7 +40,6 @@ else
else else
ndseries = 1; ndseries = 1;
nvariables = vobs(o); nvariables = vobs(o);
nobservations = nobs(o);
end end
end end
...@@ -50,7 +48,7 @@ switch ndseries ...@@ -50,7 +48,7 @@ switch ndseries
if isequal(nvariables,1) if isequal(nvariables,1)
hh = plot(o.data,varargin{:}); hh = plot(o.data,varargin{:});
else else
if length(varargin) if ~isempty(varargin)
message = sprintf('dseries::plot: dseries object %s has %d>1 variables but you passed additional arguments to the plot function.\n These additional arguments won''t ne interpreted. Use the Matlab/Octave set command and the plot\n handle instead if you wish to modify the properties of the plotted time series.',inputname(1),nvariables); message = sprintf('dseries::plot: dseries object %s has %d>1 variables but you passed additional arguments to the plot function.\n These additional arguments won''t ne interpreted. Use the Matlab/Octave set command and the plot\n handle instead if you wish to modify the properties of the plotted time series.',inputname(1),nvariables);
warning(message) warning(message)
end end
......
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