gui

조회 수: 10 (최근 30일)
Aldin
Aldin 2011년 12월 19일
how to get a value or index of row and column from table when by selection cell??
  댓글 수: 6
Walter Roberson
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.
Aldin
Aldin 2011년 12월 19일
ok

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
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
Aldin
Aldin 2011년 12월 19일
Walter, I'll apologize if I'm boring
Is that correct? : http://blinkdagger.com/matlab/matlab-gui-tutorial-uitable-part-2-how-to-access-table-data/
I quess it is solution to my problem
Walter Roberson
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개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by