insert box flag in table in the app designer
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1389184/image.png)
this a table dataType
bb=table["a",3,"zz",false]
and i want to create box flag in the cloumn 4
Réponses (1)
Cris LaPierre
le 20 Mai 2023
2 commentaires
Cris LaPierre
le 21 Mai 2023
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;
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!