필터 지우기
필터 지우기

How to solve a differential equations' system in SIMULINK

조회 수: 8 (최근 30일)
Valentina
Valentina 2012년 3월 8일
댓글: Nilecram 2015년 8월 29일
I need to solve a system of 5 differential equations that are characterized by the presence of the unknown variable both at the second member of the equation and in the derivative. I tried to use a block Discrete-Time Integrator with a loop that pick up the output of the block and calculate the second member of the equation and then enters again the integrator as dT/dt. I make an example:
cy' = ay + b --> with a gain block that multiply the output of the intergrator I calculate ay and with a Sum I obtain ay +b. Then I divide all by c and the input (that is y') goes to the integrator.
Is that correct, is that possible? The results are wrong, but I would know if is because of an error or if is due to a wrong usage of the Discrete-Time Integrator block. Someone said me that it isn't possible to solve a system of differential equatiin this way, using this simulink structure, but I would like to know your opinion.
Thank you very much to everyone answers.

채택된 답변

Guy Rouleau
Guy Rouleau 2012년 3월 9일
What you describe sounds correct. The following posts gives a good example of how to draw ODEs in Simulink:
  댓글 수: 1
Nilecram
Nilecram 2015년 8월 29일
I have a system of 3 ODE and I wanted to solve them with simulink. Could you please explain how to proceed? Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

sali
sali 2015년 3월 4일
I want to do the same but I have 256 diff equations, can I use just Matlab blocks and call functions inside each other and at the end do the simulation?

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by