How to enter data into Table in GUI?

2 Ansichten (letzte 30 Tage)
Arun Badigannavar
Arun Badigannavar am 26 Mär. 2013
How to enter set of data into table?
  1 Kommentar
Arun Badigannavar
Arun Badigannavar am 26 Mär. 2013
a=10;
b=20;
f = figure('Position',[200 200 400 150]);
dat =a,b;
cnames = {'X-Data','Y-Data','Z-Data'};
rnames = {'First','Second','Third'};
t = uitable('Parent',f,'Data',dat,'ColumnName',cnames,...
'RowName',rnames,'Position',[20 20 360 100]);
how to enter a and b data into table?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 26 Mär. 2013
Suppose you had a matrix named DATA that you wanted to set the uitable() to contain. Then,
set( Handle_of_uitable, 'data', num2cell(DATA) )

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by