필터 지우기
필터 지우기

Strange error: "Unable to use a value of type table as an index."

조회 수: 6 (최근 30일)
Gabor
Gabor 2021년 9월 27일
댓글: Jan 2021년 9월 27일
Hello,
When I used the word sortrows in the function input:
myfunc_results=myfunction(T, sortrows);
I get error: "Unable to use a value of type table as an index." when I tried to sort any table. in the function.
I change the word sortrows to sortrow and it works perfect.
It just may help someone...
Thanks
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 9월 27일
That error hints that myfunction might be an array rather than a handle to a function or a function.
Jan
Jan 2021년 9월 27일
sortrows is a Matlab command.
Please post the complete error message. What does "when I tried to sort any table" explicitly mean?

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by