number to string and char to string in table

16 次查看(过去 30 天)
how to convert number to string and char to string in a table?

采纳的回答

Adam Danz
Adam Danz 2019-7-16
编辑:Adam Danz 2019-7-16
% 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:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by