필터 지우기
필터 지우기

UITable Row Names appdesigner

조회 수: 66 (최근 30일)
Stefano Bonduà
Stefano Bonduà 2018년 6월 30일
편집: Dominik Schuster 2018년 7월 3일
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