Effacer les filtres
Effacer les filtres

How to get coefficients of triangular functions in an expression

1 vue (au cours des 30 derniers jours)
Lei LIU
Lei LIU le 21 Mai 2019
for example, X=k*sin(p1 + x*t) + c*sin(2*p1 + 2*x*t)
when I used 'coeffs' as:
[P, T]=coeffs(X,'sincos')
The result is:
P = k*sin(p1 + x*t) + c*sin(2*p1 + 2*x*t)
T =1
Actually, I want to get the coeffients of X as:
P=[k, c]
T=[sin(p1 + x*t), sin(2*p1 + 2*x*t)]
How can I do to get the desired result?

Réponses (0)

Catégories

En savoir plus sur Specialized Power Systems dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by