Instructions for using rowop.m using a computer in the Math Lab:
(On a home computer, you can use rowop.m only if you install MATLAB on
your computer. Student MATLAB can be bought from the college
bookstore for about $100 by clicking on the "Sofware Shop" link at http://www.salem.bkstr.com/ )
Right click on the link to the script rowop.m
Select "Save target as" if using Internet explorer or "Save link target as" if using Netscape.
For the filename, type c:\rowop.m (You may also save the file in a subdirectory, if you prefer)
For "Save as type", select All Files
Click on Save
Minimize the browser.
Then, double click on the MATLAB icon on the desktop (if using a computer in the Math Lab).
Type your matrix as a=[2 3 4 5;6 7 8 9;10 11 12 13]
for example, if a is a 3x4 matrix. (i.e., put brackets around the
outside of the matrix. Separate rows of the matrix with a
semicolon.)
Type cd c:\
rowop
At the prompt for Type the new matrix A, just type a (or you may type the matrix as [2 3 4 5;6 7 8 9;10 11 12 13] for example, if a is a 3x4 matrix.).
Hit enter, and then type the appropriate responses when prompted.
- Type 1 if you want to divide a row in the matrix A by a nonzero
constant. (The program will then ask you what row and what
constant you want to use).
- Type 2 if you want to perform one type 3 row operation (*row+) to replace Row k by Row k plus c times Row j. (The program will then ask you what values of k, c and j you want to use.
- Type 3 if you want to revert back to the last matrix A you had. (This undoes what you did last).
- Type 4 if you want to swap two rows. (The program will then ask what two rows you want to exchange).
- Type 5 if you want to stop execution of this script. (You may then type rowop if you want to rerun this script or exit if you want to leave MATLAB altogether).
Back to course home page