X=[1/6,1/6,1/6,1/6,1/6,1/6]
A=[0.1944,0.2144,0.1611,0.0344,-0.1656,-0.4389]
dx(i)/dt=A*X
How can I plot these differential equation such that summation x(i)=1?

 채택된 답변

Birdman
Birdman 2018년 1월 22일

0 개 추천

syms x(t)
eq=diff(x,t)==A*X.';%X should be 6x1, therefore I took the transpose of it so that the result is 1x1
solx=dsolve(eq,x(0)==1)
solx=vpa(solx,3)
The result solx will have a exponential term which has a power of -5, which means that your initial state x(i)=1 and according to any t vector you plot the change of x, there will be no significant change.
solx =
1.0 - 3.33e-5*t

추가 답변 (0개)

카테고리

질문:

2018년 1월 22일

답변:

2018년 1월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by