% Linear Algebra: Theory and Applications
% Ward Cheney & David Kincaid
% JBPub.com (c) 2008 
% File: exp831.m
% Example 8.3.1

G = [0.0,0.3,0.2;0.3,0.0,0.1;0.2,0.1,0.0];
b = [7.0;5.0;3.0];
x = [0.0,0.0,0.0];
z = [0,x']
for k=1:50
  x = G*x + b;
  z = [k,x']
end
