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

2 vues (au cours des 30 derniers jours)
Jaydeep Ashtekar
Jaydeep Ashtekar le 10 Avr 2018
Commenté : Birdman le 10 Avr 2018
I am getting problem in giving boundary condition for differential equation

Réponse acceptée

Birdman
Birdman le 10 Avr 2018
Modifié(e) : Birdman le 10 Avr 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 commentaires
Birdman
Birdman le 10 Avr 2018
What is your MATLAB version?
Birdman
Birdman le 10 Avr 2018
Here is the oldest version that I could export. Use this.

Connectez-vous pour commenter.

Plus de réponses (1)

Torsten
Torsten le 10 Avr 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 commentaire
Jaydeep Ashtekar
Jaydeep Ashtekar le 10 Avr 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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by