gui

1 view (last 30 days)
Aldin
Aldin on 19 Dec 2011
how to get a value or index of row and column from table when by selection cell??
  6 Comments
Aldin
Aldin on 19 Dec 2011
ok

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 19 Dec 2011
If you are asking how to get the row and column of the selected values when you are in a CellSelectionFcn callback, then the answer according to http://www.mathworks.com/help/techdoc/ref/uitableproperties.html#brhbsk0 is to examine the Indices structure field in the eventdata that is passed to the callback as the second parameter.
  3 Comments
Walter Roberson
Walter Roberson on 19 Dec 2011
The code there looks okay. It is, as I noted above, restricted to use within a CellSelectionFcn callback, and all it really does is access the Indices structure field of the eventdata, which is what I had indicated in my answer.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!