VariableNames for table that begins with number

2 vues (au cours des 30 derniers jours)
Anna Sergeeva
Anna Sergeeva le 8 Nov 2019
Commenté : Anna Sergeeva le 10 Nov 2019
Hello
Is it possible to make variables names, that begins with number, just to use in the table? I need to make a table, whrere variables are numbers and they have variable names {'1/6 oct' '1/3 oct' '1/2 oct' '1 oct' '2 oct'}. Is it maybe possible to add the variable name as a string variable to numbers?

Réponse acceptée

the cyclist
the cyclist le 8 Nov 2019
Yes.
tbl = table([1;2;3],'VariableName',{'123abc'})
  8 commentaires
the cyclist
the cyclist le 10 Nov 2019
Yes.
Anna Sergeeva
Anna Sergeeva le 10 Nov 2019
Thanks :-)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by