필터 지우기
필터 지우기

table gui, set parameters

조회 수: 2 (최근 30일)
Margareta Drozdikova
Margareta Drozdikova 2017년 12월 11일
답변: KL 2017년 12월 11일
Hi, I have created simple gui with table. First how to set number of row and columns. If I want 2 col and 5 row?? And how to display in the first row 1 16 in the second 1 15 and in the thirth row 1 14 ?? I have written this but it doesnt work, any help? thanks
data1=[1 16;1 15;1 14]; % t=uitable(data,'Databaza') col_nazov={'A','B'}; Ncolumns=2; Nrows=4; set(handles.uitable1,'data',cell(Nrows,Ncolumns)) set(handles.uitable1,'data',data1,'ColumnName',col_nazov); guidata(hObject, handles);

채택된 답변

KL
KL 2017년 12월 11일
Fairly simple,
data1=[1 16;1 15;1 14];
t=uitable;
t.Data = data1;
t.ColumnName = {'A','B'}; %and so on

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Language Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by