error('dseries::plot: You cannot pass more two dseries objects!')
end
if~isequal(nvariables,varargin{1}.vobs)
error('dseries::plot: The two dseries objects must have the same number of variables!')
end
if~isequal(nobservations,varargin{1}.nobs)
error('dseries::plot: The two dseries objects must have the same number of observations!')
end
else
ndseries=1;
nvariables=ts.vobs;
nobservations=ts.nobs;
end
end
switchndseries
case1
ifisequal(nvariables,1)
hh=plot(ts.data,varargin{:});
else
iflength(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 objects %s and %s have %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),inputname(2),nvariables);
warning(message)
end
hh=plot(ts0.data,ts1.data);
end
otherwise
error('dseries::plot: This is a bug! Please report the bug to the authors of Dynare.')