number to string and char to string in table

7 ビュー (過去 30 日間)
Martin
Martin 2019 年 7 月 16 日
編集済み: Adam Danz 2019 年 7 月 16 日
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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by