VariableNames for table that begins with number

조회 수: 2 (최근 30일)
Anna Sergeeva
Anna Sergeeva 2019년 11월 8일
댓글: Anna Sergeeva 2019년 11월 10일
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?

채택된 답변

the cyclist
the cyclist 2019년 11월 8일
Yes.
tbl = table([1;2;3],'VariableName',{'123abc'})
  댓글 수: 8
the cyclist
the cyclist 2019년 11월 10일
Yes.
Anna Sergeeva
Anna Sergeeva 2019년 11월 10일
Thanks :-)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by