replicate data in table
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yusran Said
am 12 Sep. 2017
Kommentiert: Walter Roberson
am 12 Sep. 2017
hello guys, i have code to show data in gui table
%%Database
data_plat = load('Data_PlatQ.mat');
Database_All = data_plat.Database_All;
data2 = table2cell(Database_All(strcmpi(Database_All.Plat, final_output), ...
{'Plat', 'Nama', 'Jurusan', 'Status'}));
data2 = [get(handles.uitable1, 'Data'); data2];
set(handles.uitable1, 'Data', data2);
when i run this code, it always replicate data in table, final_output is a number computed by the program which always changes because the program is processing video. i alrdy try unique and union function but still not work. how can i solve that?? any suggestion
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 12 Sep. 2017
set(handles.uitable1, 'Data', unique(data2, 'rows'));
5 Kommentare
Walter Roberson
am 12 Sep. 2017
Put in a breakpoint at the line
data2 = [get(handles.uitable1, 'Data'); data2];
and execute. When it stops, query
size(data2)
d1 = get(handles.uitable1, 'Data');
size(d1), class(d1)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!