uitable creates 2x16 table when data is specified as 1x16. Can this be fixed?
Afficher commentaires plus anciens
I am attempting to create a 1x16 table for a gui using Guide. It appears there is a bug that prevents one from being able to make a table with less than four rows using the Table Property Editor solely, as any deleted rows are immediately readded upon hitting 'OK' or 'Apply.'
I circumvented this, though, by creating an empty 1X16 cell array and selecting it using the 'Data' property and the Table Property Editor's "Change data value to the selected workspace variable below" feature. The change is recognized by the Table Property Editor, as it displays a single row in the "Rows" tab once the data is changed. The change is not fixed by setting the 'Data' property to a 1x16 cell within the gui's opening function.
Despite this, when the GUI is run or the changes are applied in GUIDE, a 2x16 table is actually created (not including column headers). Is this a known issue? If so, is there a workaround? My MATLAB version is 2012a.
Réponse acceptée
Plus de réponses (1)
Titus Edelhofer
le 23 Août 2012
Hi,
set(handles.uitable1, 'data', cell(1, 16));
if uitable1 is the tag of your uitable ...
Titus
1 commentaire
Evan
le 23 Août 2012
Catégories
En savoir plus sur Tables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!