Getting a specific row of a Table in Matlab
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
What would be the corret syntax for getting a column out of a table and let's say I wanted to sort it. But when I do
output = sortrows(Table{:,1});
output would only display one column out of "Table."
How would I sort the one column from "Table" and make sure that the rest, for example, columns that denote their properties follows the sorting procedure?
댓글 수: 0
답변 (1개)
Star Strider
2019년 9월 9일
Try this:
output = sortrows(Table,1)
That should sort the entire table by the sort order of column 1. (It did when I experimented with it.)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!