number to string and char to string in table

조회 수: 18 (최근 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 CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by