Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

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

Matt J (view profile)

on 28 Mar 2013
set(t,'ColumnEditable',true(1,3))

3 Comments

Matt J

Matt J (view profile)

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

Matt J (view profile)

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

Matt J (view profile)

Contact us