Solving 3 simultaneous first order differential equations

조회 수: 8 (최근 30일)
Abhivyakti
Abhivyakti 2013년 12월 26일
편집: Torsten 2019년 6월 5일
I need to solve the following set of differential equations in Matlab.
Here, um,Ks,Kp,a,sm,yxs,K1,K2-constant values s,p,x- variables
I need to solve the last three differential equations. As much as I understand, these are 3 first order simultaneous differential equations.
I can't figure out how to acknowledge the variation of u (first equation) in the rest of the equations.
Can anyone help with this?

채택된 답변

Mischa Kim
Mischa Kim 2013년 12월 28일
편집: Mischa Kim 2013년 12월 28일
If none of the variables s, p, x depend on µ you can simply go ahead and solve the three differential equations. Once solved you can get µ as a function of time by plugging in s(t) and p(t) in the first equation.
  댓글 수: 5
Ranganatha B R
Ranganatha B R 2019년 6월 5일
If you remove that you will get an error as to y is not defined. You cannot have an expression called y(1)
Torsten
Torsten 2019년 6월 5일
편집: Torsten 2019년 6월 5일
y is one of the inputs for function "react". Thus there will be no error removing "y=zeros(3,1)".

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by