How do you place values in the cells of a empty table on a GUI?
조회 수: 1 (최근 30일)
이전 댓글 표시
I made GUI with a calculate button and a table; I want the results from the calculations to appear on the table. I would gladly appreciate and help, advice or link referral. thanks in advance
댓글 수: 1
Walter Roberson
2013년 6월 4일
please read the guide to tags and retag this question. See http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
채택된 답변
Walter Roberson
2013년 6월 4일
set() the 'data' property of the uitable to be a cell array containing the results.
There is no way at the MATLAB level to update only selected cells (there is if you go to the Java level), so you may need to get() the 'data' property in order to determine the current contents before you update it.
댓글 수: 4
Iain
2013년 6월 4일
Yes, roughly. You need to make sure that handles.table is the graphics handle to the table. It should have a default name like what you thought it was, but for some reason, it has either been cleared or not been set.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!