title: Algorithm and code in SCILAB for row reduced echelon form
body: <p>I am a novice learner of SCILAB, and I know that there is a pre-defined function rref to produce the row reduced echelon form. I am looking for an algorithm for transforming a m x n matrix into row reduced echelon form and normal form and hence find the rank of a matrix.</p>
  
  <p>Can you please help? Also, we have rref as a pre-defined function in SCILAB, how can we get the scilab code for it? How to find out the code/ algorithm  behind any function in SCILAB?</p>
  
  <p>Thanks for your help.</p>