Ordinary Differential Equations using laplace transform and plotting
29 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ramkumar P
el 1 de Oct. de 2020
Respondida: Ameer Hamza
el 1 de Oct. de 2020
For the given ODE, i have used laplace transform to derive my ans. However I need to plot t towrads infinity but i am unsure as to how to code in MATLAB. May I know how to troubleshoot this?
This is the MATLAB code used to solve the ODE:
syms s t Y;
f = exp(t);
F = laplace(f,t,s);
Y1 = (s*Y);
Y2 = (((s^2)*Y)-1);
Sol = solve((9*Y1)+(3*Y2)+(3*Y)-F, Y);
sol = ilaplace(Sol,s,t);
0 comentarios
Respuesta aceptada
Ameer Hamza
el 1 de Oct. de 2020
The solution diverges when t approaches infinity
syms s t Y;
f = exp(t);
F = laplace(f,t,s);
Y1 = (s*Y);
Y2 = (((s^2)*Y)-1);
Sol = solve((9*Y1)+(3*Y2)+(3*Y)-F, Y);
sol = ilaplace(Sol,s,t);
limit:
>> limit(sol, t, inf)
ans =
Inf
plot
fplot(sol, [0 100])
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!