Appending data to GUI table

3 ビュー (過去 30 日間)
Yusran Said
Yusran Said 2017 年 9 月 7 日
コメント済み: Walter Roberson 2017 年 9 月 8 日
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 Center および File ExchangeDevelop 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