フィルターのクリア

How to get coefficients of triangular functions in an expression

1 回表示 (過去 30 日間)
Lei LIU
Lei LIU 2019 年 5 月 21 日
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?

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpecialized Power Systems についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by