Clear Filters
Clear Filters

Using MATLAB Draw the state transition diagram and find the stationary distribution of the Markov chain whose transition matrix is given

14 views (last 30 days)
Draw the state transition diagram and find the stationary distribution of the Markov chain whose transition matrix is
P=[0 1/4 3/4; 0 1/2 1/2; 2/5 2/5 1/5]

Accepted Answer

Matt J
Matt J on 30 Jan 2022
P=[0 1/4 3/4; 0 1/2 1/2; 2/5 2/5 1/5];
G=digraph(P);
plot(G,'EdgeLabel',G.Edges.Weight)
  5 Comments
Preeti Vashsiht
Preeti Vashsiht on 30 Jan 2022
As you used different coding for plotting that figure but I used different one. I just wanted to have an idea about the remaining part. Please if possible tell me that one also.

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!