<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    Okay -- I promised to send along some help on how to do row
    operations in Octave.&nbsp; Fortunately this has been a problem many
    folks have tackled before, so let me ask you to start by downloading
    three Octave functions written by Dr. Doug Rall at Furman.<br>
    <br>
    <a href="http://math.furman.edu/%7Edrall/mth160/elemrow1.m">elemrow1.m</a><br>
    <a href="http://math.furman.edu/%7Edrall/mth160/elemrow2.m">elemrow2.m</a><br>
    <a href="http://math.furman.edu/%7Edrall/mth160/elemrow3.m">elemrow3.m</a><br>
    <br>
    Save these in the directory where you will run Octave.&nbsp; To see how
    to use them type "help elemrow1" in Octave.&nbsp; Below I will use the
    third operation to row reduce the linear system via Gaussian
    Elimination (the example I worked in class last Thursday)<br>
    <br>
    octave:2&gt; A = [2,1,3,1;4,4,7,1;2,5,9,3]<br>
    A =<br>
    <br>
    &nbsp;&nbsp; 2&nbsp;&nbsp; 1&nbsp;&nbsp; 3&nbsp;&nbsp; 1<br>
    &nbsp;&nbsp; 4&nbsp;&nbsp; 4&nbsp;&nbsp; 7&nbsp;&nbsp; 1<br>
    &nbsp;&nbsp; 2&nbsp;&nbsp; 5&nbsp;&nbsp; 9&nbsp;&nbsp; 3<br>
    <br>
    octave:3&gt; A = elemrow3(A,1,2,-2)<br>
    A =<br>
    <br>
    &nbsp;&nbsp; 2&nbsp;&nbsp; 1&nbsp;&nbsp; 3&nbsp;&nbsp; 1<br>
    &nbsp;&nbsp; 0&nbsp;&nbsp; 2&nbsp;&nbsp; 1&nbsp; -1<br>
    &nbsp;&nbsp; 2&nbsp;&nbsp; 5&nbsp;&nbsp; 9&nbsp;&nbsp; 3<br>
    <br>
    octave:4&gt; A = elemrow3(A,1,3,-1)<br>
    A =<br>
    <br>
    &nbsp;&nbsp; 2&nbsp;&nbsp; 1&nbsp;&nbsp; 3&nbsp;&nbsp; 1<br>
    &nbsp;&nbsp; 0&nbsp;&nbsp; 2&nbsp;&nbsp; 1&nbsp; -1<br>
    &nbsp;&nbsp; 0&nbsp;&nbsp; 4&nbsp;&nbsp; 6&nbsp;&nbsp; 2<br>
    <br>
    octave:5&gt; A = elemrow3(A,2,3,-2)<br>
    A =<br>
    <br>
    &nbsp;&nbsp; 2&nbsp;&nbsp; 1&nbsp;&nbsp; 3&nbsp;&nbsp; 1<br>
    &nbsp;&nbsp; 0&nbsp;&nbsp; 2&nbsp;&nbsp; 1&nbsp; -1<br>
    &nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp;&nbsp; 4&nbsp;&nbsp; 4<br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Andrew J. Pounds, Ph.D.  (<a class="moz-txt-link-abbreviated" href="mailto:pounds@theochem.mercer.edu">pounds@theochem.mercer.edu</a>)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
</pre>
  </body>
</html>