How can sum cell's data in uitable in gui?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
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");
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!