Labeling axes in app design
71 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kyle Koutonen
le 15 Fév 2021
Modifié(e) : Adam Danz
le 16 Fév 2021
Im creating an app that that you input data into a table and names for each column. then on another tab i plot these values. I wanna make the axes lables to be the headers from my table but i don't know how to code in lables in app desginer since it's not like regular matlab where i can just sat xlabe=(''), how would i accomplish this in app designer?
for refrence I have the names of the columns saved in a variable called app.s
0 commentaires
Réponse acceptée
Adam Danz
le 15 Fév 2021
Modifié(e) : Adam Danz
le 16 Fév 2021
Setting axis labels for uifigures (ie, in app designer) is the same process as setting axis labels in regular figures. The only difference is that you must specify the axis handle in UIFigures since the HandleVisibility property of uifigures is off by default. It's also encouraged to do this in regular figures but not required if you're working with the current axes.
xlabel(app.UIAxes, app.S{1})
0 commentaires
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!