How to calculate the coefficients of non-polynomial terms
5 次查看(过去 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!