how to solve a linear equation
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Kazi Main Uddin Ahmed
il 30 Ott 2019
Commentato: Sulaymon Eshkabilov
il 31 Ott 2019
hi, I am solving continuous markov chain state equation. Following is the code of those equations.
how can I get the equations (as example P0 - T(1,:)* [P0; P1 ;P2; P3] = 0) after % equations section?
Thanks
syms P0 P1 P2 P3 % stable state
syms u03 lamda13 lamda20 lamda21 u32
T= [1-u03 0 0 u03;
0 1-lamda13 0 lamda13;
lamda20 lamda21 1-lamda20-lamda21 0;
0 0 u32 1-u32];
% equations
P0=T(1,:)* [P0; P1 ;P2; P3];
P1=T(2,:)* [P0;P1;P2;P3];
P2=T(3,:)* [P0;P1;P2;P3];
P3=T(4,:)* [P0;P1;P2;P3];
0 Commenti
Risposta accettata
Sulaymon Eshkabilov
il 30 Ott 2019
Hi,
Here is the solution:
syms P0 P1 P2 P3 % stable state
syms u03 lamda13 lamda20 lamda21 u32
T= [1-u03 0 0 u03;
0 1-lamda13 0 lamda13;
lamda20 lamda21 1-lamda20-lamda21 0;
0 0 u32 1-u32];
% equations
E0=T(1,:)* [P0; P1 ;P2; P3];
E1=T(2,:)* [P0;P1;P2;P3];
E2=T(3,:)* [P0;P1;P2;P3];
E3=T(4,:)* [P0;P1;P2;P3];
% EQNS
EQN0 = P0- E0;
EQN1 = P1- E1;
EQN2 = P2- E2;
EQN3 = P3- E3;
Good luck
2 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!