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

10 views (last 30 days)
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 Comments
Jan
Jan on 27 Sep 2021
sortrows is a Matlab command.
Please post the complete error message. What does "when I tried to sort any table" explicitly mean?

Sign in to comment.

Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!