Laplace transform not getting Value

1 visualización (últimos 30 días)
BEENA BASHEER
BEENA BASHEER el 16 de En. de 2022
Respondida: Walter Roberson el 16 de En. de 2022
I tried to solve lapalce but not getting the value (Xs). Find the code below, Is there any issues in the code?
syms x(t) Xs
eqn = diff(x,t,2)+2*diff(x,t)+26*x(t) == 10*cos(t)*(heaviside(t-pi));
eqnLT = laplace(eqn)
eqnLT = 
eqnLT = subs(eqnLT,laplace(x(t)), Xs);
eqnLT = subs(eqnLT, {x(0), diff(x(t), t, 0)}, {1/2,1});
Xs = solve(eqnLT, Xs)
Xs = 

Respuesta aceptada

Star Strider
Star Strider el 16 de En. de 2022
I do not see any specific problems.
syms x(t) Xs s
eqn = diff(x,t,2)+2*diff(x,t)+26*x(t) == 10*cos(t)*(heaviside(t-pi));
eqnLT = laplace(eqn)
eqnLT = 
eqnLT = subs(eqnLT,laplace(x(t)), Xs);
eqnLT = subs(eqnLT, {x(0), diff(x(t), t, 0)}, {1/2,1})
eqnLT = 
Xs = isolate(eqnLT, Xs)
Xs = 
X(s) = rhs(Xs)
X(s) = 
Perhaps the isolate function will do what you want.
.
  4 comentarios
BEENA BASHEER
BEENA BASHEER el 16 de En. de 2022
Wow! It helps me a lot! Thanks!
Star Strider
Star Strider el 16 de En. de 2022
As always, my pleasure!
.

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 16 de En. de 2022
syms x(t) Xs
eqn = diff(x,t,2)+2*diff(x,t)+26*x(t) == 10*cos(t)*(heaviside(t-pi));
eqnLT = laplace(eqn)
eqnLT = 
eqnLT = subs(eqnLT,laplace(x(t)), Xs);
dx = diff(x,t);
eqnLT = subs(eqnLT, {x(0), dx(0)}, {1/2,1});
Xs = solve(eqnLT, Xs)
Xs = 

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by