solving trigonometric equations problem
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
I want to solve following trigonmetric equation in matlab 2010
cos(alpha) = 0.5
and I want to get alpha in degrees, so...60
I Tried following code,...
syms x
s = solve(cos(x)== 1)
but i get this:
*_??? Error using ==> char
Conversion to char from logical is not possible.
Error in ==> solve>getEqns at 169
vc = char(v);
Error in ==> solve at 67
[eqns,vars] = getEqns(varargin{:})_*
Thans in advance...
0 件のコメント
回答 (2 件)
Walter Roberson
2012 年 12 月 2 日
Your MATLAB version is not new enough to understand using == in a symbolic expression. R2012a or later is required for that. Use Azzi's solution -- i.e.,
solve(A==B)
being equivalent to
solve((A)-(B))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!