getMC_walkOnClosedChain - gamma initial distribution T...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function [S, gamma, T] = getMC_walkOnClosedChain(S) % Returns the MC descriptor for a random walk on a closed chain of size "S". % S : Number of states in the chain
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % gamma : initial distribution % T : Transition matrix % gamma = [1 zeros(1,S-1)]; T = 0.2*diag(ones(1,S))+ 0.8*diag(ones(1,S-1),1); T(end,1) = 0.8; return...
View Full Document

This note was uploaded on 02/03/2011 for the course MS&E 221 taught by Professor Ramesh during the Winter '11 term at Stanford.

Ask a homework question - tutors are online