필터 지우기
필터 지우기

How can sum cell's data in uitable in gui?

조회 수: 2 (최근 30일)
Seyed Amir Mohammad Lahaghi
Seyed Amir Mohammad Lahaghi 2022년 11월 4일
답변: Marcel 2022년 11월 7일

Hello. I have two tables in gui. In the left table I want enter data (numerical) and in the right table I want see the results when I click on a pushbutton as follow: - sum of all data in cell (1,1) - sum of all data in all rows and columns except first column in cell (1,2) - ... - sum of data in cells (6,3) - (6,4) - (6,5) - (7,3) - (7,4) - (7,5) and so on to (9,5) -... Please help. Thanks

  댓글 수: 1
Cris LaPierre
Cris LaPierre 2022년 11월 4일
Please share the code you have written so that we can help.

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

답변 (1개)

Marcel
Marcel 2022년 11월 7일
If you want to add data to a UITable this might help you
app.UITable.Data(1,1) = "whatever";
app.UITable.ColumnFormat(1,1) = ({'numeric'});
% if app.UITable.Data(1,1) = "whatever"; doesnt work, try this:
% app.UITable.Data(1,1) = cellstr("whatever");

카테고리

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