Unrecognized variable Using solve command
조회 수: 3 (최근 30일)
이전 댓글 표시
It keeps giving “unrecognized function or variable ‘theta’
댓글 수: 0
답변 (1개)
Star Strider
2022년 6월 11일
Perhaps:
syms theta
just after the ‘outputs’ comment would help.
Also MATLAB is case-sensitive, so change:
Angle = 10;
to:
angle = 10;
.
댓글 수: 1
Walter Roberson
2022년 6월 11일
if theta is symbolic and angle is numeric then assignment to
Eq340(theta, angle)
would be an error.
I say that you should
syms theta angle
and change the Angle in Eq340 to angle
After that the last statement would become
theta = subs(S, angle, Angle)
Question: are you sure that you want to be working with 10 radians? It looks to me more likely that you should be using sind(angle) instead of sin(angle)
참고 항목
카테고리
Help Center 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!