MATLAB: Cell array

cell arrays

If I have a cell array that consists of 1 row by n columns such as and each entry has text of the form
xx1 xx2 xx3 xx4
How can I create a single string that has each entry comma seperated. I need to create this format to enable Rowheaders for a UItable.
i.e. rowHeaders = {'xx1','xx2',xx3','xx4'};
thanks

Best Answer

rowHeaders = YourCellArrayName;
That is all you need: that is already equivalent to
rowHeaders = {YCAN{1}, YCAN{2}, YCAN{3}, ...};