필터 지우기
필터 지우기

uitable update

조회 수: 2 (최근 30일)
p fontaine
p fontaine 2011년 3월 5일
How can I change only one value at a time in a uitable ? I don't want to update the whole table by something like set(h,'Data',data) because the table is large It is inefficient and induces flickering on display when doing it periodically

채택된 답변

p fontaine
p fontaine 2011년 3월 5일
It works ! as written above (I made a mistake)

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 3월 5일
The mechanism depends upon which version of Matlab you are using, as the internals of uitable were rewritten. See for example this discussion
  댓글 수: 1
p fontaine
p fontaine 2011년 3월 5일
R2010a
After reading, I tried the following :
assuming htable is a handle on a uitable
jUIScrollPane = findjobj(htable);
jUITable = jUIScrollPane.getViewport.getView;
model = jUITable.getModel();
model.setValueAt(12,1,1);
but the cell is not set ....

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by