change table var type
古いコメントを表示
採用された回答
その他の回答 (1 件)
KALYAN ACHARJYA
2021 年 2 月 8 日
編集済み: KALYAN ACHARJYA
2021 年 2 月 8 日
"My table is already there and I need to change the var type of a column."
If the data is numeric, you can use num2str(variable_name) to convert numeric var to string data type.
Lets suppose you have table variable T and want to convert string of the particular column variable "col1", then
num2str(T.col1)
2 件のコメント
Jeremy Hughes
2021 年 2 月 8 日
I think you should share your code. Hard to tell what you really need to do.
カテゴリ
ヘルプ センター および File Exchange で Data Type Identification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!