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

3 visualizaciones (últimos 30 días)
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 comentarios
Guillaume
Guillaume el 19 de Jun. de 2018
Editada: Guillaume el 19 de Jun. de 2018
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 el 19 de Jun. de 2018
Editada: Guillaume el 19 de Jun. de 2018
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

Iniciar sesión para comentar.

Respuestas (1)

Sayyed Ahmad
Sayyed Ahmad el 19 de Jun. de 2018
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

Categorías

Más información sobre Polynomials en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by