Error on if loop

조회 수: 4 (최근 30일)
Emily Gobreski
Emily Gobreski 2016년 6월 17일
댓글: Star Strider 2016년 6월 17일
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

채택된 답변

Star Strider
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.
  댓글 수: 4
Emily Gobreski
Emily Gobreski 2016년 6월 17일
It works! thank you so much!
Star Strider
Star Strider 2016년 6월 17일
My pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Word games에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by