![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174242/image.png)
solving a set of first order differential equations in simulink
조회 수: 5 (최근 30일)
이전 댓글 표시
I wish there is a way, maybe a block or something, to simulate a set of first order differential equations of any form (not restricted to be linear) easily. You know how difficult it is to build the system using basic blocks particularly when it is a high order nonlinear one. I got a clue on the Web. Is there a block called dee (differential equation editor)? I couldn't find anything about that in my Matlab 2012b help documentation or in the simulink library. Maybe it has been added in later versions, Huh?
댓글 수: 0
답변 (2개)
Mischa Kim
2014년 1월 20일
Hello Pouya, there is a way: use an embedded MATLAB function to define the differential equations, say Xdot = f(X), where X is the state vector. Then use an integrator block to compute X . Initial conditions can be defined either externally or internally (to the integrator block).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174242/image.png)
댓글 수: 2
Mischa Kim
2014년 1월 20일
편집: Mischa Kim
2014년 1월 20일
Yes, I am familiar with the dee tool (simply type dee at the MATLAB command prompt, if you have it installed). I still recommend the general approach shown above because it gives you much more flexibility setting up the problem.
참고 항목
카테고리
Help Center 및 File Exchange에서 Reporting and Database Access에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!