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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Polynomials 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by