Unrecognized variable Using solve command
4 ビュー (過去 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!