function E = EM2(n,c,i) % EM2 elementary matrix of type II. % % EM2(n,c,i) is an n-by-n matrix that multiplies the % i-th row of any n-by-m matrix A by the scalar c % (when multiplying A on the left). % % Matt Kawski 7-10-99 % http://math.la.asu.edu/~kawski % kawski@asu.edu % E = eye(n); if ( i > n ) disp('First index exceeds matrix dimension') else E(i,i) = c; end