VariableNames for table that begins with number

1 visualización (últimos 30 días)
Anna Sergeeva
Anna Sergeeva el 8 de Nov. de 2019
Comentada: Anna Sergeeva el 10 de Nov. de 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?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by