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

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.
How to send that edited data back to workspace

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 App Building 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by