Appending data to GUI table
조회 수: 1 (최근 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
댓글 수: 0
채택된 답변
Walter Roberson
2017년 9월 7일
You need to union by 'rows'
댓글 수: 2
Walter Roberson
2017년 9월 8일
handles.uitable1.Data = union(handles.uitable1.Data, data2, 'rows');
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!