To start a Matlab session, type matlab and hit return. Once Matlab opens, type: >>diary matlabwarmup.txt >> % This creates a file in my home directory called matlabwarmup.txt. It is a record of my Matlab session. Note also that putting a "%" at the beginning of a line creates a comment line. >>addpath courses/242b/matlab/toolbox >> %this points Matlab to the directory where I downloaded the data sets from www.laylinalg.com. >>c1s1 Exercise number (1-4,7-18,29-32,34)? 5 No data for this exercise in Section 1.1. >>c1s1 Exercise number (1-4,7-18,29-32,34)? 14 M = 1 -3 0 5 -1 1 5 2 0 1 1 0 >> rref(M) ans = 1 0 0 2 0 1 0 -1 0 0 1 1 >> RREF(M) Warning: Could not find an exact (case-sensitive) match for 'RREF'. /afs/bu.edu/common/IT/matlab-7.4/toolbox/matlab/matfun/rref.m is a case-insensitive match and will be used instead. You can improve the performance of your code by using exact name matches and we therefore recommend that you update your usage accordingly. Alternatively, you can disable this warning using warning('off','MATLAB:dispatcher:InexactMatch'). ans = 1 0 0 2 0 1 0 -1 0 0 1 1 >> % Matlab is case sensitive. It will try to guess the correct command, but will yell at you. >> % The next command "quit" will end the Matlab session. >> quit