why am I getting this error, Subscript indices must either be real positive integers or logicals, when trying to set axis limits?
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Star Strider
2015-3-17
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!