필터 지우기
필터 지우기

How to name row in uitable.

조회 수: 22 (최근 30일)
han han
han han 2019년 11월 18일
답변: Cameron B 2019년 12월 16일
As shown in the figure, for example, when the number of data lines I input is equal to 5 (greater than 4), I hope that the number of lines of uitable can be "BS 5".
How do you make the line name change with the amount of data?
擷取.JPG
  댓글 수: 2
Ankit
Ankit 2019년 11월 18일
are you using guide or app designer for your application?
Walter Roberson
Walter Roberson 2019년 11월 18일
If you know the 5 ahead of time, then you set the contents of that part of the Data as appropriate.
If you know the 5 ahead of time, but the row item should not appear until you enter a value in one of the numeric locations, then you can use a CellEditCallback to figure out where was edited in order to know where to put the names.

댓글을 달려면 로그인하십시오.

답변 (1개)

Cameron B
Cameron B 2019년 12월 16일
uit = uitable(uifigure,'Data',rand(10,3),'ColumnEditable',[false true true])
rows = size(uit.Data,1);
ss = strcat('BS',string(1:rows));
uit.RowName = ss;

카테고리

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