Borrar filtros
Borrar filtros

Getting a specific row of a Table in Matlab

4 visualizaciones (últimos 30 días)
Minjun Seo
Minjun Seo el 9 de Sept. de 2019
Respondida: Star Strider el 9 de Sept. de 2019
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?

Respuestas (1)

Star Strider
Star Strider el 9 de Sept. de 2019
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.)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by