Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
%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