Azzera filtri
Azzera filtri

How to get coefficients of triangular functions in an expression

1 visualizzazione (ultimi 30 giorni)
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?

Risposte (0)

Categorie

Scopri di più su Specialized Power Systems in Help Center e File Exchange

Prodotti


Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by