C Math Library Reference | ![]() ![]() |
Horizontally concatenate cell arrays. Emulates the MATLAB cell array concatenation operator ({ }).
Minimum number of arguments: two, maximum: user-defined. Terminate the list of arguments with a NULL
.
C Prototype
mxArray *mlfCellhcat(mxArray *pa, ...);
C Syntax
#include "matlab.h" mxArray *A; /* Required input argument(s) */ mxArray *B, *C; /* Optional input argument(s) */ mxArray *D = NULL; /* Return value */ mlfAssign(&D, mlfCellhcat(A,NULL)); mlfAssign(&D, mlfCellhcat(A,B,NULL)); mlfAssign(&D, mlfCellhcat(A,B,C,...,NULL));
MATLAB Syntax
D = { A B }; D = { A B C };
See Also
![]() | mlfCellfun | mlfCellstr | ![]() |