Borrar filtros
Borrar filtros

How to get coefficients of triangular functions in an expression

1 visualización (últimos 30 días)
Lei LIU
Lei LIU el 21 de Mayo de 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?

Respuestas (0)

Categorías

Más información sobre Specialized Power Systems en Help Center y File Exchange.

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by