Change variable names in a table

76 vues (au cours des 30 derniers jours)
Jesse
Jesse le 22 Nov 2018
Commenté : Stephen23 le 27 Juil 2023
Hi all,
I would like to change all variable names within a table, to attached file, a cell array.
This is what i use now;
rf1.Properties.VariableNames = vars1

Réponse acceptée

Stephen23
Stephen23 le 22 Nov 2018
Modifié(e) : Stephen23 le 22 Nov 2018
You can use a cell array of names, like this:
rfi.Properties.VariableNames = {'name1','name2',...}
  5 commentaires
Sampath Rachumallu
Sampath Rachumallu le 29 Juin 2020
Unable to add spaces in Column names of a table using above.
Steven Lord
Steven Lord le 29 Juin 2020
The ability to have spaces in table variable names was introduced in release R2019b as stated in the Release Notes.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by