How to make table editable

f = figure('Position',[200 200 400 150]);
dat = rand(3);
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 make this table editable

回答 (1 件)

Matt J
Matt J 2013 年 3 月 28 日

2 投票

set(t,'ColumnEditable',true(1,3))

3 件のコメント

Matt J
Matt J 2013 年 3 月 28 日
編集済み: Matt J 2013 年 3 月 28 日
The 'ColumnFormat" property also has some features that control editability.
Arun Badigannavar
Arun Badigannavar 2013 年 3 月 28 日
How to send that edited data back to workspace
Matt J
Matt J 2013 年 3 月 28 日
get(t,'Data')

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeApp Building についてさらに検索

タグ

質問済み:

2013 年 3 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by