MATLAB: How to convert a sym array into a string array

cell arraysconvertMATLABstringsymbolictable

I have very long arrays of symbolic variables which I need to convert to cell arrays of strings: For example, turning this:
syms x y u
q = [x y u]
into this:
qs = {'x' 'y' 'u'}
something like num2string() but with syms? I'd appreciate any help, thanks.

Best Answer

qc = arrayfun(@char, q, 'uniform', 0);