Borrar filtros
Borrar filtros

UITable Row Names appdesigner

66 visualizaciones (últimos 30 días)
Stefano Bonduà
Stefano Bonduà el 30 de Jun. de 2018
Editada: Dominik Schuster el 3 de Jul. de 2018
Using appdesigner, I add a simple UItable. From the UITABLE properties, I cannot set the Row Names, while I can for the column name. by Default ther are 4. I tried to modify at run time adding in the function startup of my UIFigure:
function startupFcn(app)
app.UITable.RowName={'row 1'; 'row 2'; 'row 3'};
app.UITable.ColumnName = {'Col 1'; 'Col 2'; 'Col 3'};
end
When the table is shown, the number of columns are modified and also the names, but the row names are not shown.
After loading some data, then rowname appear:
How I can solve it?

Respuestas (1)

Dominik Schuster
Dominik Schuster el 3 de Jul. de 2018
Editada: Dominik Schuster el 3 de Jul. de 2018
It seems rownames are only shown for tables containing at least one data cell. It also seems rownames are removed from tables as soon as all data is removed from them. To me there seems no other solution than to always keep at least one empty cell {[]} or {''} in the .Data property.

Categorías

Más información sobre Migrate GUIDE Apps 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