www.pudn.com > Matlab_Markov.rar > dchain.m



clear
N=100;
rho = 0.05;

x(1) = rand(1)<0.5;
for i=2:N
  change = rand(1)