How can I concatenate:
A = {\'hello\'; \'hi\'; \'hey\'}
with
B = {\'Ben\'; \'Karen\'; \'Lisa\'}
with a
You can do that using cellfun:
cellfun(@(x,y) [x, ' ', y], A, B, 'UniformOutput', false) ans = { [1,1] = hello Ben [2,1] = hi Karen [3,1] = hey Lisa }