Azzera filtri
Azzera filtri

UITable Row Names appdesigner

73 visualizzazioni (ultimi 30 giorni)
Stefano Bonduà
Stefano Bonduà il 30 Giu 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?

Risposte (1)

Dominik Schuster
Dominik Schuster il 3 Lug 2018
Modificato: Dominik Schuster il 3 Lug 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.

Categorie

Scopri di più su App Building in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by