MATLAB: How to turn an array of doubles to cell array

MATLAB

How to turn an array of doubles to cell array? I need to use an array of doubles (they are actually integers) and assign this new array into a table variable names, but I keep getting an error: "The VariableNames property must be a cell array, with each element containing one nonempty string."
Thanks,
jennifer

Best Answer

You can use the num2cell command to do what you ask.
It may still balk, because the cell contents are numeric. In that case, you could use num2str or sprintf to convert the numeric arrays.