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

Respuestas (1)

Matt J
Matt J el 28 de Mzo. de 2013

2 votos

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

3 comentarios

Matt J
Matt J el 28 de Mzo. de 2013
Editada: Matt J el 28 de Mzo. de 2013
The 'ColumnFormat" property also has some features that control editability.
Arun Badigannavar
Arun Badigannavar el 28 de Mzo. de 2013
How to send that edited data back to workspace
Matt J
Matt J el 28 de Mzo. de 2013
get(t,'Data')

Iniciar sesión para comentar.

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 28 de Mzo. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by