number to string and char to string in table

11 visualizzazioni (ultimi 30 giorni)
how to convert number to string and char to string in a table?

Risposta accettata

Adam Danz
Adam Danz il 16 Lug 2019
Modificato: Adam Danz il 16 Lug 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:

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by