Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Plot, Expression or statement is incorrect--possibly unbalanced (, {, or [.

조회 수: 1 (최근 30일)
Gary
Gary 2014년 11월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
%plot graphs
hold on
plot(wt,m,'b')
xlabel('Time (s)')
ylabel('Torque (Nm)')
The error is showing for the ylabel line
  댓글 수: 3
Chad Greene
Chad Greene 2014년 11월 18일
I suspect the problem is actually somewhere else in your code. An unterminated parentheses or bracket can confuse Matlab regarding where exactly the problem is.
Image Analyst
Image Analyst 2014년 11월 18일
I bet you retyped your code into your question. Copy and paste the code instead. Take several lines before also. Most likely the problem occurs several lines above.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by