Why is a statement like "sortrows(A)(2:4)" "invalid array indexing" and how can I circumvent adding an extra line of code to make it work?
Show older comments
I could write:
sorted = sortrows(A)
sorted(2:4)
However this seems clumsy and unnecessarily long to me. How can I compress it down to one statement?
Accepted Answer
More Answers (0)
Categories
Find more on Shifting and Sorting Matrices 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!