Appending data to GUI table

3 次查看(过去 30 天)
I have program to display data in a uitable
data_plat = load('Data_Plat.mat');
Database_All = data_plat.Database_All;
data2 = table2cell(Database_All(strcmpi(Database_All.Plat, final_output), ...
{'Plat', 'Nama', 'Jurusan', 'Status'}));
handles.uitable1.Data = union(handles.uitable1.Data, data2);
this code just display data in 1 column(downward), how to make it show in a row every data? see the picture

采纳的回答

Walter Roberson
Walter Roberson 2017-9-7
You need to union by 'rows'
  2 个评论
Yusran Said
Yusran Said 2017-9-7
编辑:Yusran Said 2017-9-8
how to do that? i try some code, add 'row', but get erorr
Walter Roberson
Walter Roberson 2017-9-8
handles.uitable1.Data = union(handles.uitable1.Data, data2, 'rows');

请先登录,再进行评论。

更多回答(0 个)

类别

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