%File: problem_2.m created Jan. 25, 2000 by Fayez Elguibaly

%The program accepts a 5X5 Markov matrix and finds its eigenvalues

% and eignevectors.

%

P=[1 0.5 0 0 0

0 0 0.5 0 0

0 0.5 0 0.5 0

0 0 0.5 0 0

0 0 0 0.5 1]

n = size(P,1) % returns the number of rows of P

[X,D]= eig(P)
 

 


Book Homepage Book's MATLAB Homepage Markov Matrices

Copyright © 2001 Northstar Digital Design, Inc.