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

2 ビュー (過去 30 日間)
Jaydeep Ashtekar
Jaydeep Ashtekar 2018 年 4 月 10 日
コメント済み: Birdman 2018 年 4 月 10 日
I am getting problem in giving boundary condition for differential equation

採用された回答

Birdman
Birdman 2018 年 4 月 10 日
編集済み: Birdman 2018 年 4 月 10 日
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 件のコメント
Birdman
Birdman 2018 年 4 月 10 日
What is your MATLAB version?
Birdman
Birdman 2018 年 4 月 10 日
Here is the oldest version that I could export. Use this.

サインインしてコメントする。

その他の回答 (1 件)

Torsten
Torsten 2018 年 4 月 10 日
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 件のコメント
Jaydeep Ashtekar
Jaydeep Ashtekar 2018 年 4 月 10 日
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

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by