Hello i try to make a gui calendar and i have a question. The dates of the month it will be displayed by a matrix gui but i want to get the what index of the matrix the user has select i tried get(handles.matrix ,'selected ' ); but the result is not what i want
matrix is the gui table
thank you

댓글 수: 1

Jan
Jan 2015년 3월 6일
편집: Jan 2015년 3월 6일
We can neither guess what you get nor what you want. Please add some code, which reproduces the problem and explain your problem with more details. What is a "matrix gui"?

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

 채택된 답변

Adam
Adam 2015년 3월 6일

0 개 추천

Use the CellSelectionCallback to define a callback which will store the currently selected cell. As far as I know you cannot get this information on demand if you do not store it via the callback unless you use some java code, which isn't difficult, but is outside of the functionality documented by Mathworks.

추가 답변 (2개)

george
george 2015년 3월 6일

0 개 추천

ok now the table is the variable matrix if u see i have select the number two ( 2 ) i want to make : when i press the button ( push button ) i want the matlab to display what index is selected in this case to display 2,2
thank you
george
george 2015년 3월 6일

0 개 추천

the answer is row = eventdata.Indices(1)%rows colum = eventdata.Indices(2)%colums

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

질문:

2015년 3월 6일

답변:

2015년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by