distplot(mc,X,Name,Value)uses additional
options specified by one or more name-value pair arguments. For example, specify the type of plot or the frame rate for animated plots.
distplot(ax,___)plots on the axes specified by ax instead of the current axes (gca) using any of the input argument combinations in the previous syntaxes.
h = distplot(___) returns a handle to the distribution plot. Use h to modify properties of the plot after
you create it.
Discrete-time Markov chain with NumStates states and transition matrix P, specified as a dtmc object. P must be fully specified (no NaN entries).
X — Evolution of state probabilities nonnegative numeric matrix
Evolution of state probabilities, specified as a (1 + numSteps)-by-NumStates nonnegative numeric matrix returned by redistribute. The first row is the initial state distribution. Subsequent rows are the redistributions at each step. distplot normalizes the rows by their respective sums before plotting.
Data Types: double
ax — Axes on which to plot Axes object
Axes on which to plot, specified as an Axes object.
By default, distplot plots to the current axes
(gca).
Name-Value Pair Arguments
Specify optional
comma-separated pairs of Name,Value arguments. Name is
the argument name and Value is the corresponding value.
Name must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN.
Example: 'Type','graph','FrameRate',3 creates an animated plot of the redistributions using a frame rate of 3 seconds.
'Type' — Plot type 'evolution' (default) | 'histogram' | 'graph'
Plot type, specified as the comma-separated pair consisting of 'Type' and a value in this table.
Value
Description
'evolution'
Evolution of the initial distribution. The plot is a (1 + NumSteps)-by-NumStates heatmap. Row i displays the redistribution at step i.
'histogram'
Animated histogram of the redistributions. The vertical axis displays probability mass, and the horizontal axis displays states. The 'FrameRate' name-value pair argument controls the animation progress.
'graph'
Animated graph of the redistributions. distplot colors the nodes by their probability mass at each step. The 'FrameRate' name-value pair argument controls the animation progress.
Example: 'Type','graph'
Data Types: string | char
'FrameRate' — Length of discrete time steps positive scalar
Length of discrete time steps, in seconds, for animated plots, specified as the
comma-separated pair consisting of 'FrameRate' and a positive
scalar.
The default is a pause at each time step. The animation proceeds when you press the space
bar.
Handle to the distribution plot, returned as a graphics object. h contains a unique plot identifier, which you can use to query or modify properties of the plot.