Appending data to GUI table

조회 수: 2 (최근 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 CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by