Error on if loop
20 次查看(过去 30 天)
显示 更早的评论
if 0<theta<180, x=C*A
else xx=CC*AA
end
Undefined function or variable 'A'.
Error in DynamicsProject (line 60)
if 0<theta<180, x=C*A
0 个评论
采纳的回答
Star Strider
2016-6-17
It is asking you to define variable ‘A’.
That aside, the if condition should be defined as:
if (0 < theta) & (theta < 180)
There is not enough information presented to allow a more detailed Answer.
There’s quite likely a more efficient way to do what you want to do, if we have the necessary information to help you do it.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!