How can I stop App Designer UITable from displaying all numbers as complex?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tomás Salvo Aportone
le 3 Déc 2023
Commenté : Tomás Salvo Aportone
le 3 Déc 2023
I've made a UITable to display some values I've calculated. It was working perfectly right up until I added a column with some complex numbers on them, now, every column is displaying the values as complex numbers, even if their imaginary part is zero. Is there a way to stop this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1559129/image.png)
0 commentaires
Réponse acceptée
Walter Roberson
le 3 Déc 2023
Only if you convert all of the entries to string or characters
Formatting on a uitable is strange. For example if you have format short in effect then a window-full of entries will all be formatted the same way, and if you scroll then the format might change, including for some of the same entries. The format of entries depends on the other values that are in view.
Plus de réponses (0)
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!