Commit 64ddca51 authored by MichelJuillard's avatar MichelJuillard
Browse files

dynSeries: making possible to concatanate empty series; fixing bugs

parent ebf93d67
......@@ -58,11 +58,11 @@ function a = horzcat(varargin)
% Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
if nargin==0 || nargin==1
error('dynSeries::horzcat: I need at least two input arguments!')
end
if nargin==2
if nargin==0
a = DynSeries();
elseif nargin == 1
a = varargin{1};
elseif nargin==2
a = horzcat2(varargin{1},varargin{2});
else
a = horzcat2(varargin{1},varargin{2});
......
......@@ -108,5 +108,6 @@ else
c.data = [c.data; NaN(b_last_date-c_last_date,c.vobs)];
end
a.data = [b.data, c.data];
a.time = unique([b.time, c.time]);
end
\ No newline at end of file
a.time = unique(b.time.append(c.time));
end
a.nobs = size(a.data,1);
\ No newline at end of file
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