% Linear Algebra: Theory and Applications % Ward Cheney & David Kincaid % JBPub.com (c) 2008 % File: exp724.m % Example 7.2.4 format long A = [1,4; 2,5; 3,6] b = [1;1;-2] E = A'*A f = A'*b G = [E f] rref(G)