Filter löschen
Filter löschen

table gui, set parameters

2 Ansichten (letzte 30 Tage)
Margareta Drozdikova
Margareta Drozdikova am 11 Dez. 2017
Beantwortet: KL am 11 Dez. 2017
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);

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Language Fundamentals 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!

Translated by