function mn=driver(m)
% function mn=driver(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];
%           >> driver(m)
s=input('Give the space for each number to print in  ');
d=input('Give the number of decimal points  ');
c='a';
while c~='s'
   prntmx('Here is your matrix',m,s,d)
   c=choice;
   if c=='a'
      m=mult(m);
   elseif c=='r'
      m=inter(m);
   elseif c=='d'
      m=div(m);
   elseif c~='s'
      disp('There seems to be something wrong with your answer.')
      disp('It looked to me like:')
      disp(c)
   end
end
mn=m;
