MATLAB: Number to string and char to string in table

stringtable

how to convert number to string and char to string in a table?

Best Answer

% Create fake data
T = table((1:5)',('a':'e')','VariableNames', {'col1','col2'});
% Convert num-to-string and char-to-string
T.col1 = string(T.col1);
T.col2 = string(T.col2);
More info on characters vs. strings:
Related Question