How to set UIAxes min and max lim for plot in app designer ?
Afficher commentaires plus anciens
Hi All
to set a min and max limit for my UIAxes in add designer I use :
ax=app.UIAxes;
ax.YLim([minlim,maxlim])
but I get the error :
Subscript indices must either be real positive integers or logicals.
7 commentaires
1) Why make a copy of the app.UIAxes handle instead of setting the ylim directly from
app.UIAxes.YLim = [minlim,maxlim];
2) You forgot the equal sign (but use the syntax above rather than making a copy of the handle).
ax.YLim = [minlim,maxlim];
farzad
le 11 Avr 2020
Adam Danz
le 11 Avr 2020
Upon first glance, I missed the missing equal sign, too ;)
farzad
le 12 Avr 2020
Adam Danz
le 13 Avr 2020
You might be using the wrong axes handle. Did you happen to use linkaxes command? What do you mean "differentiate the y axis"?
farzad
le 13 Avr 2020
Réponse acceptée
Plus de réponses (1)
Catégories
En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
