LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
matlab
lib
thirdparty
MG1files
stat.m
1
function K = stat(A)
2
% STAT(A) calculates a stationary distribution of a stochatic matrix A, i.e. a
3
% left eigenvector corresponding to eigenvalue 1 with nonnegative elements
4
% summing to one.
5
6
% Last modification: 7th March 1997
7
8
9
S = size(A,1);
10
e = ones(S,1);
11
B = [A - eye(S),e];
12
y = [zeros(1,S),1];
13
K = y / B;
Generated by
1.9.8