I want to concatenate (padding with spaces) the strings in a cell array {\'a\', \'b\'} to give a single string \'a b\'. How can I do this in MATLAB
{\'a\', \'b\'}
\'a b\'
Small improvement (?) on the answer by Alex
strs = {'a','b','c'}; strs_spaces = [strs{1} sprintf(' %s', strs{2:end})];