change table var type
Mostra commenti meno recenti
Risposta accettata
Più risposte (1)
KALYAN ACHARJYA
il 8 Feb 2021
Modificato: KALYAN ACHARJYA
il 8 Feb 2021
"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 Commenti
Jeremy Hughes
il 8 Feb 2021
I think you should share your code. Hard to tell what you really need to do.
Categorie
Scopri di più su Data Type Identification in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!