필터 지우기
필터 지우기

How can I weight the edges in a Markov plot, using graphplot?

조회 수: 2 (최근 30일)
Lawrence Nitz
Lawrence Nitz 2018년 2월 7일
I am trying to plot a 6 node Markov process with edges weighted by the transition probabilities, for a clearer representation than that provided by numerical weights or colored edges. Here is my code: %"fir" is the ttmc output fir=dtmc(primary) h=graphplot(fir) weight=nonzeros(primary) h.LineWidth = ( weight); graphplot(gg, "LineWidth", weight)
And, I get the following error:
Undefined function 'graphplot' for input arguments of type 'matlab.graphics.chart.primitive.GraphPlot'.
Error in net_trans (line 77) graphplot(gg, "LineWidth", weight)
I liked the graphplot output because it allows me to emphasize the more stable nodes in the matrix (those in which subjects do not change states). My proposed code does not work--is there a better way to do this?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Markov Chain Models에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by