Getting a specific row of a Table in Matlab
2 ビュー (過去 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!