number to string and char to string in table

6 Ansichten (letzte 30 Tage)
Martin
Martin am 16 Jul. 2019
Bearbeitet: Adam Danz am 16 Jul. 2019
how to convert number to string and char to string in a table?

Akzeptierte Antwort

Adam Danz
Adam Danz am 16 Jul. 2019
Bearbeitet: Adam Danz am 16 Jul. 2019
% 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:

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by