MATLAB Answers

number to string and char to string in table

7 views (last 30 days)
Martin
Martin on 16 Jul 2019
Edited: Adam Danz on 16 Jul 2019
how to convert number to string and char to string in a table?

  0 Comments

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 16 Jul 2019
Edited: Adam Danz on 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:

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.