%--------------------------------------------------------------------------
% CHAMELEM.horzcat
%--------------------------------------------------------------------------
% Concatenate two CHAMELEM objects.
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
CHAM3 = CHAMELEM.horzcat(CHAM1,CHAM2)
CHAM3 = horzcat(CHAM1,CHAM2)
CHAM3 = [CHAM1 CHAM2]
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% CHAMELEM.horzcat allows for concatening two CHAMELEM objects. If the two
% CHAMALEM to be concatenated have the same support, then they must not
% have the same components.
%
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% CHAM1 : CHAMELEM object
% CHAM2 : CHAMELEM object
%
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% CHAM3 : CHAMELEM object
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
CHAM1 = CHAMELEM(MO1,'d',0.75,'p',0.0012)
CHAM1 =
CHAMELEM with properties:
model: [1x1 MODEL]
cham_val: [1x2 struct]
CHAM2 = CHAMELEM(MO1,'epsp',-0.00075)
CHAM2 =
CHAMELEM with properties:
model: [1x1 MODEL]
cham_val: [1x2 struct]
CHAM3.cham_val(1).val_elem(1)
ans =
d: {[0.7500]}
p: {[0.0012]}
epsp: {[-7.5000e-04]}
CHAM3.cham_val(2).val_elem(1)
ans =
d: {[0.7500] [0.7500] [0.7500] [0.7500]}
p: {[0.0012] [0.0012] [0.0012] [0.0012]}
epsp: {[-7.5000e-04] [-7.5000e-04] [-7.5000e-04] [-7.5000e-04]}