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.
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?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!