UITable Row Names appdesigner

55 次查看(过去 30 天)
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?

回答(1 个)

Dominik Schuster
Dominik Schuster 2018-7-3
编辑:Dominik Schuster 2018-7-3
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.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by