%--------------------------------------------------------------------------
% EVOL.horzcat
%--------------------------------------------------------------------------
% Concatenate two EVOL objects
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
EV3 = EVOL.horzcat(EV1,EV2);
EV3 = horzcat(EV1,EV2);
EV3 = [EV1 EV2];
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% The method horzcat of the EVOL class allows for concatenating two EVOL
% objects. The x_label and y_label of EV1 and EV2 should be the same.
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% EV1 : EVOL object
% EV2 : EVOL object
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% EV3 : EVOL object
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
X1 = [0 1 2];
Y1 = [-1 1 0];
EV1 = EVOL(X1,Y1,'Time (s)','Value (SI)');
X2 = [2 0 6];
Y2 = [0 7 5];
EV2 = EVOL(X2,Y2,'Time (s)','Value (SI)');
EV3 = [EV1 EV2]
EV3 =
EVOL with properties:
absc: [0 1 2 2 0 6]
ordo: [-1 1 0 0 7 5]
x_label: 'Time (s)'
y_label: 'Value (SI)'