How to add data to an existing UITable in app designer?

4 次查看(过去 30 天)
Data is loaded to UITable from an Excel file with startupfcn, then some more data is needed to be written to the same UITable. When l try to add more data, the previous data vanishes. l am looking for something like in writematrix('WriteMode','append').

回答(1 个)

Voss
Voss 2023-11-27
old_data = app.UITable.Data;
app.UITable.Data = [old_data; new_data];

类别

Help CenterFile 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!

Translated by