MATLAB: Convert Cell to String

cell arrayconversionstring

I have a cell array:
x = {'red' 'blue' 'green'}
I need to convert it to a string (looking for another way besides char). So the output would be:
red
blue
green
Thanks, Amanda

Best Answer

You could use something like:
s = sprintf('%s\n', x{:})