How to calculate the coefficients of non-polynomial terms
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
T S Singh
am 8 Sep. 2018
Bearbeitet: madhan ravi
am 8 Sep. 2018
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 Kommentare
Akzeptierte Antwort
madhan ravi
am 8 Sep. 2018
Bearbeitet: madhan ravi
am 8 Sep. 2018
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 Kommentare
madhan ravi
am 8 Sep. 2018
Bearbeitet: madhan ravi
am 8 Sep. 2018
if you find it useful please accept the answer, thank you @John
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assumptions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!