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 日

1 投票

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 件)

カテゴリ

ヘルプ センター および File Exchange で Mathematics and Optimization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by