필터 지우기
필터 지우기

"table" error - "Unable to use a value of type 'cell' as an index"

조회 수: 5 (최근 30일)
ImageProcNaive
ImageProcNaive 2019년 5월 1일
댓글: Eliana NessAiver 2020년 5월 17일
When I used the example shown in the function "table" on Matlab user website- it throws this error "Unable to use a value of type 'cell' as an index". Not sure why. Can anyone help?
  댓글 수: 2
Steven Lord
Steven Lord 2019년 5월 1일
Which of the seven examples on the table documentation page are you running?
Which release of MATLAB are you using? Does the example that you're trying to run from the online documentation exist in the locally installed documentation for the release you're using?
Can you copy and paste the exact code you run and the full text (everything displayed in red) of the error message into a comment on this question? The exact text may include details that will be of use in determining the cause of the problem.
Walter Roberson
Walter Roberson 2019년 5월 1일
Were you doing the Row Names example where they index the first dimension with a cell array of character vectors?
Which MATLAB version are you using?

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

채택된 답변

Walter Roberson
Walter Roberson 2019년 5월 1일
You accidentally created a variable named "table" so matlab thinks you are trying to index the variable.
  댓글 수: 2
ImageProcNaive
ImageProcNaive 2019년 5월 1일
Of course I did (<facepalm>)
Thanks a lot.
Eliana NessAiver
Eliana NessAiver 2020년 5월 17일
I've been looking and looking for a solution to my similar error message. I echo OP's facepalm. Thanks!

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

추가 답변 (1개)

ImageProcNaive
ImageProcNaive 2019년 5월 1일
Yes the first one. Please see the attached image. I am using 2018b table issue.PNG

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by