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!