How to enter data into Table in GUI?

5 次查看(过去 30 天)
How to enter set of data into table?
  1 个评论
Arun Badigannavar
Arun Badigannavar 2013-3-26
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?

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by