How to calculate the coefficients of non-polynomial terms
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to find the coefficients of non-polynomial terms
For example
syms x
a=-9*cos(x)*4+x*9+4*sin(x)
I want to find the coefficients of sin(x) and cos(x).
When using coeffs its not working
Thanks
0 件のコメント
採用された回答
madhan ravi
2018 年 9 月 8 日
編集済み: madhan ravi
2018 年 9 月 8 日
syms x
a=-9*cos(x)*4+x*9+4*sin(x)
[C,T] = coeffs(a) %edited after John’s comment.
It’s working for me
11 件のコメント
madhan ravi
2018 年 9 月 8 日
編集済み: madhan ravi
2018 年 9 月 8 日
if you find it useful please accept the answer, thank you @John
その他の回答 (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!