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

Answers (1)

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

3 Comments

Matt J
Matt J on 28 Mar 2013
Edited: Matt J on 28 Mar 2013
The 'ColumnFormat" property also has some features that control editability.
How to send that edited data back to workspace

Sign in to comment.

Categories

Find more on App Building in Help Center and File Exchange

Tags

Asked:

on 28 Mar 2013

Community Treasure Hunt

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

Start Hunting!