Appending data to GUI table

3 visualizzazioni (ultimi 30 giorni)
Yusran Said
Yusran Said il 7 Set 2017
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

Risposta accettata

Walter Roberson
Walter Roberson il 7 Set 2017
You need to union by 'rows'
  2 Commenti
Yusran Said
Yusran Said il 7 Set 2017
Modificato: Yusran Said il 8 Set 2017
how to do that? i try some code, add 'row', but get erorr
Walter Roberson
Walter Roberson il 8 Set 2017
handles.uitable1.Data = union(handles.uitable1.Data, data2, 'rows');

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Workspace Variables and MAT-Files in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by