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

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Sep. 2017

0 Stimmen

You need to union by 'rows'

2 Kommentare

Yusran Said
Yusran Said am 7 Sep. 2017
Bearbeitet: Yusran Said am 8 Sep. 2017
how to do that? i try some code, add 'row', but get erorr
handles.uitable1.Data = union(handles.uitable1.Data, data2, 'rows');

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by