A few minutes ago, everything was as usual.It came all of a sudden, and I don't thing I did anything related with the plot function:
>> plot(a)
Subscript indices must either be real positive integers or logicals.
>> bar(a)
>> area(a)
>> bar([1,2])
>> plot([1,2])
Index exceeds matrix dimensions.

 채택된 답변

Star Strider
Star Strider 2017년 12월 8일

0 개 추천

You most likely have a variable that you named ‘plot’.
Run this line:
which plot -all
If the first line in the output is:
plot is a variable.
you found the problem. The solution is to rename the variable.

댓글 수: 2

Dean Chen
Dean Chen 2017년 12월 8일
You are brilliant. Don't even remember why I did something like that. Thanks a lot!
Star Strider
Star Strider 2017년 12월 8일
Thank you!
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2017년 12월 8일

댓글:

2017년 12월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by