How can I give initial condition as given in following equation?

2 visualizaciones (últimos 30 días)
I am getting problem in giving boundary condition for differential equation

Respuesta aceptada

Birdman
Birdman el 10 de Abr. de 2018
Editada: Birdman el 10 de Abr. de 2018
Try this(requires Symbolic Toolbox):
syms x(t)
eq=diff(x,t)==5*x-3;
initCond=x(2)==1;
X(t)=dsolve(eq,initCond)
  4 comentarios
Birdman
Birdman el 10 de Abr. de 2018
What is your MATLAB version?
Birdman
Birdman el 10 de Abr. de 2018
Here is the oldest version that I could export. Use this.

Iniciar sesión para comentar.

Más respuestas (1)

Torsten
Torsten el 10 de Abr. de 2018
Take a look at the section
"Solve Differential Equation with Condition"
under
https://de.mathworks.com/help/symbolic/dsolve.html
The first example shows you how to set up your problem.
Best wishes
Torsten.
  1 comentario
Jaydeep Ashtekar
Jaydeep Ashtekar el 10 de Abr. de 2018
Above answer is correct but I want to solve this equation by using Simulink block of integration.There I am not able give the above boundary condition t=2,x=1

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by