필터 지우기
필터 지우기

insert box flag in table in the app designer

조회 수: 20 (최근 30일)
Luca Re
Luca Re 2023년 5월 20일
댓글: Cris LaPierre 2023년 5월 21일
this a table dataType
bb=table["a",3,"zz",false]
and i want to create box flag in the cloumn 4
  댓글 수: 2
Simon Chan
Simon Chan 2023년 5월 20일
You may refer to the documentation about function uitable
Luca Re
Luca Re 2023년 5월 20일
thanks

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

답변 (1개)

Cris LaPierre
Cris LaPierre 2023년 5월 20일
  댓글 수: 2
Luca Re
Luca Re 2023년 5월 20일
i don't understand...
I set column 1 as editable from the panel..but I want to insert only the values "A" "B" "C" and I don't know what to write in the space here
function CARICACARTELLEButtonValueChanged(app, event)
value = app.CARICACARTELLEButton.Value;
app.Uitable. ==> ???
end
Cris LaPierre
Cris LaPierre 2023년 5월 21일
If your data in colum 4 is a logical, it will display as a check box. From the documentation Simon Chan pointed to:
  • Table array (uifigure-based apps only) — Displays any combination of data types that table arrays support, such as datetime, duration, and categorical.
  • Numeric array — Displays numeric values such as double or single.
  • Logical array — Displays check boxes. true values correspond to selected boxes, whereas false values display cleared boxes.
  • Cell array — Displays any combination of numeric, logical, or character array values.
  • String array — Displays characters and text.
  • Cell array of character vectors — Displays characters and text.
You only need to worry about making it editable if you want users to be able to change the value.
As for getting your data into the table, I think this link is what you want:
The line of code will look like this
app.UITable.Data = t;

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

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by