필터 지우기
필터 지우기

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

조회 수: 1 (최근 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 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