function mn=driver2(m)
% function mn=driver2(m)  solves series of linear equations from matrix m
% This program allows the user to 
%   solve a series of linear equations with 
%   matrix m giving the elements in the equation 
%   augmented with the constants in the last column.
% 
%   by Ozgur Bayazitoglu and SHD
%
%   m is the array of coefficients
%  Example: >> m=[9 6 -2 -3;2.75 2.5 -1 1.25;3.75 2.5 -1 -.75];
%           >> driver2(m)
s=input('Give the space for each number to print in  ');
d=input('Give the number of decimal points  ');
c1='Stop';
c2='Add multiple of row to another';
c3='Interchange rows';
c4='Divide row by a constant';
k=0;
while k~=1
   prntmx('Here is your matrix',m,s,d)
   k=goodmenu('Diagonalizing a Matrix',c1,c2,c3,c4);
   if k==2
      m=mult(m);
   elseif k==3
      m=inter(m);
   elseif k==4
      m=div(m);
   end
end
mn=m;
