Borrar filtros
Borrar filtros

Get the row number from a uitable component

5 visualizaciones (últimos 30 días)
Giovanni
Giovanni el 6 de Sept. de 2011
Hi everyone,
I have a question regardind how to obtain the number of the selected row inside a uitable component. I saw on the older versions was quite easy, but I couldn´t find any helpful documentation about the new version.
With the old version was easily possible to get the row number using the getSelectedRow property of uitable.
Basically I have created a GUI, using guide, containing 4 axes elements, where I plot 4 graphics, and an uitable containing some datas. Each point on the x axis of the graphics, corresponds to a row number of the uitable.
What I would like now to do, is to select for instance a row from the table, and use the row number to draw a marker at the corresponding index value on the graphics.
Can anyone give me some useful tips?

Respuestas (2)

Walter Roberson
Walter Roberson el 6 de Sept. de 2011
Record the indices at the time of the cell selection, by using a CellSelectionCallback; see http://www.mathworks.com/help/techdoc/ref/uitableproperties.html#brhbsk0

Giovanni
Giovanni el 7 de Sept. de 2011
Thanks a lot!

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by