Azzera filtri
Azzera filtri

How to enter data into Table in GUI?

3 visualizzazioni (ultimi 30 giorni)
How to enter set of data into table?
  1 Commento
Arun Badigannavar
Arun Badigannavar il 26 Mar 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?

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 26 Mar 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) )

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by