why am I getting this error, Subscript indices must either be real positive integers or logicals, when trying to set axis limits?

조회 수: 5 (최근 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.

채택된 답변

Star Strider
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 CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by