MATLAB: How to add a string to a cell

cell arrayexcelstring

I have a 1×4 cell array containing strings, that I got using [num,txt]=xlsread(…). Now I would like to add another string, so that it becomes a 1×5 cell array, so that I can use it as column legends for a 5×5 numeric array that I will export with xlswrite. How can I add that string?

Best Answer

C{1,5} = 'newstring';