How do i model differential equations in simulink that are not time dependent ?

3 ビュー (過去 30 日間)
Aryaman Patel
Aryaman Patel 2019 年 6 月 15 日
編集済み: Aryaman Patel 2019 年 6 月 28 日
I want to model a second order differential equation which is space dependent but the integrator box is "continous time integrator". Also, I haven't been able to find any article on modelling space dependent function.
This is the equation I wish to model.
Ui is velocity
Y is the y coordinate axis of direction of movement ( value goes from -1 to 1)
Rest all are constants.

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019 年 6 月 15 日
編集済み: Sulaymon Eshkabilov 2019 年 6 月 15 日
Hi,
Yes, it is possible to solve this type of ODEs in SImulink. Here is the solution model attached.
Note that the simulation time has to be set start time at: -1 and end time at: 1
The simulation time can be adjusted according to your given problem statements with: [Ctrl]+[E] or [Model Configuration Parameters] -> [Simulation Time].
Your contant values can be specified in the MATLAB Workspace, or within the Gain blocks, or [File]->[Model properties] -> [Callbacks] ->[InitFcn].
Good luck.

カテゴリ

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

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by