How do i model differential equations in simulink that are not time dependent ?
조회 수: 3 (최근 30일)
이전 댓글 표시
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/224693/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/224690/image.png)
Ui is velocity
Y is the y coordinate axis of direction of movement ( value goes from -1 to 1)
Rest all are constants.
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!