
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Dr. Wolfe MATH 240 MATLAB PROJECT #2 Due July 2, 2009
(a) Type Pˆ2 to calculate P 2. (b) Use P and P 2 to answer the following questions. Suppose an animal chooses food #1 on the initial trial. What is the probability that the animal will: (i) choose food #2 on the next trial? (ii) choose food #2 on the second trial after the initial trial? (iii) choose food #3 on the second trial after the initial trial? (c) Type I=eye(3), rref(P-I)to calculate the reduced echelon form of P −I. Record this and use it to write the general solution x to the system (P − I)x = 0. Also choose a nonzero value for the free variable and write a particular solution w. To calculate the steady state vector q for P enter your solution w and type q=w/sum(w). Explain why q is a probability vector and verify that q satisfies P q = q.