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

1 vue (au cours des 30 derniers jours)
sara hosseini
sara hosseini le 19 Juin 2018
Modifié(e) : Guillaume le 19 Juin 2018
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 commentaires
Guillaume
Guillaume le 19 Juin 2018
Modifié(e) : Guillaume le 19 Juin 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 le 19 Juin 2018
Modifié(e) : Guillaume le 19 Juin 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

Connectez-vous pour commenter.

Réponses (1)

Sayyed Ahmad
Sayyed Ahmad le 19 Juin 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

Catégories

En savoir plus sur Polynomials dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by