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

3 visualizzazioni (ultimi 30 giorni)
I am getting problem in giving boundary condition for differential equation

Risposta accettata

Birdman
Birdman il 10 Apr 2018
Modificato: Birdman il 10 Apr 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 Commenti
Birdman
Birdman il 10 Apr 2018
Here is the oldest version that I could export. Use this.

Accedi per commentare.

Più risposte (1)

Torsten
Torsten il 10 Apr 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 Commento
Jaydeep Ashtekar
Jaydeep Ashtekar il 10 Apr 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

Accedi per commentare.

Categorie

Scopri di più su Modeling in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by