why am I getting this error, Subscript indices must either be real positive integers or logicals, when trying to set axis limits?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
James Porter
le 17 Mar 2015
Commenté : Star Strider
le 19 Mar 2015
I am plotting two volltage against time, I try to set the axis as follows,
axis([-0.1, 0.1 40 140])
but get this error; Subscript indices must either be real positive integers or logicals.
0 commentaires
Réponse acceptée
Star Strider
le 17 Mar 2015
In the Command Window, type:
whos axis
I suspect you have a variable named ‘axis’ that is causing the error. The solution: rename the variable.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Object Programming 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!