uitable in m-file

3 visualizaciones (últimos 30 días)
Eggo Ogge
Eggo Ogge el 12 de Abr. de 2011
There is a code:
cnames = {'A','B'}; rnames = {'1'}; columneditable = [true, true]; columnformat = {'char'};
t = uitable('ColumnName',cnames, 'RowName',rnames,'Position',[334 290 205 58], 'ColumnEditable',columneditable,'ColumnFormat',columnformat);
The problem, when i want to write something to cell, it gives an error, that cell is not editable. What is wrong here?

Respuesta aceptada

Andrew Newell
Andrew Newell el 12 de Abr. de 2011
When I try this, I get a link saying "Please click here for more information." Clicking on it, I get "When you create a table, you must specify value of Data. The Data property dictates what type of data can exist in any given cell."
  2 comentarios
Eggo Ogge
Eggo Ogge el 12 de Abr. de 2011
columnformat = {'char'}
But here I wrote, that my data format will be 'char'.
Andrew Newell
Andrew Newell el 12 de Abr. de 2011
Try putting in some empty strings:
t = uitable(... 'Data',{'',''});

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by