Change variable names in a table

68 visualizzazioni (ultimi 30 giorni)
Jesse
Jesse il 22 Nov 2018
Commentato: Stephen23 il 27 Lug 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

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by