How to plot a markov chain in matlab?

I have the states and transition probabilities. Just wonder if there is a matlab function to plot it automatically. Please feel free to let me know if you think there're better programs to plot it.

4 件のコメント

Cedric
Cedric 2014 年 6 月 23 日
編集済み: Cedric 2014 年 6 月 23 日
I'd use graphviz, and generate the script with MATLAB if I have to because all previous computations are made with MATLAB.
Star Strider
Star Strider 2014 年 6 月 24 日
Cedric, this needs to be an Answer. I never knew ‘graphviz’ existed.
Delete my comment here when you’ve transferred your comment to an Answer.
Cedric
Cedric 2014 年 6 月 24 日
Hi Star, it was more a suggestion than an answer actually, but thank you for the comment!
Matt Franklin
Matt Franklin 2017 年 4 月 10 日
Did you create the script to plot arbitrary Markov chains in graphviz? That would be very useful. Please share if possible!

サインインしてコメントする。

回答 (1 件)

Raymond
Raymond 2014 年 6 月 24 日

2 投票

Thanks both Cedric and Star.
Just tried out graphiz. The quickest way to try it out is to: get sample codes here: http://www.graphviz.org/Gallery.php try out a web version converter: http://graphviz-dev.appspot.com/ and change attributes as necessary: http://www.graphviz.org/doc/info/attrs.html

1 件のコメント

Cedric
Cedric 2014 年 6 月 24 日
Thank you for the references! There are also FEX submissions and a package on GitHub if my memory is good, but I didn't test them.

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2014 年 6 月 23 日

コメント済み:

2017 年 4 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by