How to convert numerical array to string array for table formulation.Below is the 2 attached picture of my command window.
조회 수: 3 (최근 30일)
이전 댓글 표시
when I used words like sita in my variable name of table,its working,but when i tried useing a number in variable name its showing an error .My MATLAB version is 2015 so I cant use string command directly.So kindely let me know how I can appear numbers as my variable names and row names in a table.


댓글 수: 0
채택된 답변
Ameer Hamza
2020년 12월 5일
I guess in R2015x the table does not allow the column names to begin with a number. You need to add an alphabet at the beginning.
c = array2table(a, 'VariableNames', {['a' num2str(1000)], 'radha', 'sita'})
댓글 수: 2
Ameer Hamza
2020년 12월 6일
That is only possible in newer releases. It works in R2020b. Not possible to do this in R2015x releases.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!