checkbox in APP designer
조회 수: 40 (최근 30일)
이전 댓글 표시
In the Matlab built in examaple call "TableDataAppExample.mlapp", a graphical table component is filled (by the function startupFcn(app)) with a variable table call "t" by the sentence
% Add data to the Table UI Component
app.UITable.Data = t;
The data in the therd column of the variable table "t" is a logical value, its value either is "true" or "false", and after filling the graphical table (by app.UITable.Data = t;) it happens that in the therd column logical "true" appears as a checked checkbox, and logical "false" appears as an unchecked checkbox.
My problem is...
When I do the same in my ongoing APP design it happens that when a fill my graphical table from a variable table, columns defined in this variable table as logical "true" appear as a "1" in the graphical table, and columns defined as logical "false" appear as a "0",
How can I make them to appear as a checked or unchecked checkbox as in the "TableDataAppExample.mlapp" example ?.
댓글 수: 0
채택된 답변
Monika Phadnis
2020년 10월 9일
R2020b Documentation for 'uitable' specifies that logical arrays will be displayed as checkboxes.
Refer this page:
https://www.mathworks.com/help/matlab/ref/matlab.ui.control.tableappd-properties.html#bvboy7l-1-Data
Is there any error or warning displayed for your use case?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!