How can I Autofill a Cell in a Table?
조회 수: 6 (최근 30일)
이전 댓글 표시
I have placed a (3,1) table in a GUI and would like it to autofill the third cell with the same value the user added in the first cell. How can this be done?
댓글 수: 0
채택된 답변
Walter Roberson
2012년 6월 14일
Set the uitable CellEditCallback property to a routine that checks the Indices field of the eventdata structure, and if the indices are [1 1] then get() the Data property of the uitable, and copy the eventdata New Value property to element {3,1} of that and set() that as the new Data property.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!