MATLAB Answers

How to make table editable

Asked by Arun Badigannavar on 28 Mar 2013
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

  0 Comments

Tags

Products

No products are associated with this question.

1 Answer

Answer by Matt J
on 28 Mar 2013
set(t,'ColumnEditable',true(1,3))

  3 Comments

Matt J
on 28 Mar 2013

The 'ColumnFormat" property also has some features that control editability.

Arun Badigannavar on 28 Mar 2013

How to send that edited data back to workspace

Matt J
on 28 Mar 2013
 get(t,'Data')

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today