How can I multiply each element of a polynomial with different coefficients??

3 ビュー (過去 30 日間)
sara hosseini
sara hosseini 2018 年 6 月 19 日
編集済み: Guillaume 2018 年 6 月 19 日
Lts say I have a function in s domain, using iLaplace code at end I have an inverse laplace at the form of: exp(t)+exp(-2t)+t+5 How can I make this polynomial to be like c1*exp(t)+c2*exp(-2t)+c3*t+5*c4*??
  2 件のコメント
Guillaume
Guillaume 2018 年 6 月 19 日
編集済み: Guillaume 2018 年 6 月 19 日
exp(t)+exp(-2t)+t+5 is not a polynomial!
What does: I have exp(t)+exp(-2t)+t+5 actually mean in matlab code? What do you actually have?
sara hosseini
sara hosseini 2018 年 6 月 19 日
編集済み: Guillaume 2018 年 6 月 19 日
this is my function in "s" domain:
(-0.00000704*(s*f3+f3_p)+0.000011*(s.^3*f3+s.^2*f3_p+s*f3_pp+f3_ppp))./(-s.^2*0.00000704+s.^4*0.000011)
taking ilaplace of this function gives:
-0.03*exp(0.8*t)+0.03*exp(-0.8*t)+1.57*t+5
now I want to multiply each element of this function with a coefficinet c1,c2,c3,c4 that I have :
-0.03*exp(0.8*t)*c1+0.03*exp(-0.8*t)*c2+1.57*t*c3+5*c4

サインインしてコメントする。

回答 (1 件)

Sayyed Ahmad
Sayyed Ahmad 2018 年 6 月 19 日
c1*exp(t)+c2*exp(-2*t)+c3*t+5*c4
if your c1 to cn are also arrays with the same dimension as t-series
c1.*exp(t)+c2.*exp(-2*t)+c3.*t+5*c4

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by