Why does the "simple" function in the Symbolic Math Toolbox cause MATLAB to hang when trying to simplify my expression?
23 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2014 年 12 月 2 日
編集済み: MathWorks Support Team
2020 年 8 月 12 日
I have created the following expression using symbolic variables:
>> syms x y z a b c iu iv su sv;
>> x_hat = cos(iv)*( cos(su)*sin(sv)*z - sin(su)*sin(sv)*y + cos(sv)*x +a ) ...
- sin(iv)*( cos(su)*cos(sv)*z - sin(su)*cos(sv)*y - sin(sv)*x +b ) ;
>> y_hat = cos(iu)*( sin(su)*z + cos(su)*y + c ) ...
- sin(iu)*sin(iv)*( cos(su)*sin(sv)*z - sin(su)*sin(sv)*y - cos(sv)*x +b ) ...
- sin(iu)*cos(iv)*( cos(su)*cos(sv)*z - sin(su)*cos(sv)*y - sin(sv)*x +a ) ;
When I try to simplify this expression with the "simple" function, it produces a lot of output to the Command Window, but remains 'Busy' and does not yield a simplified expression. How can I fix this?
>> simple(diff(atan( x_hat / y_hat ),x))
採用された回答
MathWorks Support Team
2020 年 7 月 8 日
編集済み: MathWorks Support Team
2020 年 8 月 12 日
The use of 'simple' function is no longer supported. Instead, you should use the "simplify" function, which works much faster on this example and does yield a simplified form of the expression.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Assumptions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!