plot states sequence over time
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
susman
am 23 Feb. 2021
Kommentiert: susman
am 3 Mär. 2021
I want to plot the state transitions chain of markov process. My original state transitions matrix is 56 by 1000. But here I give a small example
for example, if I have to plot this matrix, where each column represents discrete lifetime for one individual.
sequence = [1 1 1 1 2 2 2 2 2 3;...
1 1 1 1 1 1 1 1 1 1;...
1 1 1 1 1 1 1 1 1 1;...
1 1 1 1 1 1 1 2 2 2;...
1 1 1 1 1 1 1 1 1 1;...
2 2 2 2 2 2 2 2 2 2; ...
2 2 2 2 2 2 2 3 3 3; ...
2 3 3 3 3 3 2 2 2 2; ...
2 2 2 2 2 2 4 4 4 4]
age = (25:33)
How can I put on x axis the age variable and y axis the matrix sequence columnwise?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!