Changing the name of the variables in table
Afficher commentaires plus anciens
Let us say I have an output file (called combined) which is an array so To write to a file, first I convert it into the table but now I do not know how to change the name of the variables
T = array2table(combined);
Now the variables names are combined1, combined2 and so on but I want to give it my own names like 150K, 140K etc. Could you help me with this
Réponse acceptée
Plus de réponses (1)
I think you can do something like: T.Properties.VariableNames = {'newname1' 'newname2'}
2 commentaires
Shelender Kumar
le 2 Nov 2018
awezmm
le 2 Nov 2018
The issue is that you cant start variable names with numbers. You can have to some sort of string at the beginning. Maybe you can do 'Resolution_146k' or give some other title so it describes it well
Catégories
En savoir plus sur Tables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!