gui
1 次查看(过去 30 天)
显示 更早的评论
how to get a value or index of row and column from table when by selection cell??
6 个评论
Walter Roberson
2011-12-19
If it is the same question but the answers you have received in the existing questions do not work for you, then you should stay in that question and indicate the problems you are encountering rather than posting a new Question. New Questions are for new topics.
采纳的回答
Walter Roberson
2011-12-19
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 个评论
Walter Roberson
2011-12-19
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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!