You can use strcat()
, although it performs a loop:
strcat(A,{' '}, B)
where the blank is preserved by enclosing it within a cell.
Alternatively, FEX:CStrCatStr is a mex routine which achieves a 10x speedup (depending on testing environment):
CStrCatStr(A,' ', B)