필터 지우기
필터 지우기

How do I modify cell values of editable Uitable after closed the figure?

조회 수: 1 (최근 30일)
Dear Experiences..
i have a table, as shown in the following figure
  • where the shown figure, first column is not considered in summation values of last column, also some columns are not shown here, any way:
  • last column is involves the summation of columns [2..n], when i used the following code .. i'm able to change the cell values of my table but when i close the figure, values are not saved..
  • So, how can i store the modified cells values and seen new result in SUM column?, and is there any way to added button in the figure that able to store values after press that button and seen the new result in SUM column.
t=uitable('Data',TT{:,:},'ColumnName',TT.Properties.VariableNames,...
'RowName',TT.Properties.RowNames,'Units', 'Normalized', 'Position',[0, 0, 1, 1]);
set(t,'ColumnEditable',logical(1))
get(t,'Data')
thanks...

채택된 답변

Jan
Jan 2017년 8월 26일
The question is not clear:
  • When do you want to save what? After the figure is closed, it is closed and the contents is gone. Of course you have to save any content before it is closed, e.g. by using e "Save" button or automatically inside the CloseRequestFcn or DeleteFcn. Simply save the output of get(TableH, 'Data'), with the uitable handle in "TabelH".
  • How can the first column by a sum of the last column?
is there any way to added button in the figure that able to store values after press that
button and seen the new result in SUM column.
  • Yes, of course there is a way: Simply add a button. Either do this manually or using GUIDE, exactly as you have created the table.
  댓글 수: 6
Jan
Jan 2017년 8월 28일
What exactly does "when i running through GUI" mean and what do you observe, when you say "retrieve issue regards that figure do not accept modification"?

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

추가 답변 (0개)

카테고리

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