return value of categorical array in uitable- Matlab App Designer

4 vues (au cours des 30 derniers jours)
Niklas Högemann
Niklas Högemann le 7 Mai 2021
Hi Guys, im just working on a GUI with Matlab App Designer. Ive added some UITables with categorical arrays to have drop menues in my tables. Therefore i defined the cells like "cell = categorical({'on'}, {'on','off'})", to have a default value in the drop down. The issue is that the return value of the cell is "1x1 categorical" when im not changing the default value, but if i made any changes on the drop down i get only a char value from the cell. Why does matlab do this cast operation? Is there a way to get a categorical array for any case?
Best regards

Réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by