MatLab Assignment 2
-- Turn in on February 1
-- Vectors, Matrices, Matrix Algebra, MatLab
Function rank
If you have any question or problem with MatLab, please
send me an email at:
chenm or
call me at: 953-7896.
- For this project, you need to record some computation results
for your report. Read the MatLab
handout (2) to see how to save computation
results in text into a file on A Drive or C Drive under directory
mydocu~1 (my document). After you are done with computation
and recording, you may use Note Pad or a
word processor
to edit the text and write your comments
before turn it in as the project report.
- Read the MatLab
handout (2) to learn how to perform
the vector and matrix operations numerically and symbolically
in MatLab. Note that the matrices given below are typed
in a way as they are initialized in MatLab. To save time on
typing numbers in MatLab, you may do the following.
- Start the Netscape and display the content of the project on the
screen (http://macs02.citadel.edu/~chenm/234.dir/mlass2.html).
- Highlight the matrix to be initialized in MatLab.
- Use Copy on the Netscape window bar to copy down
the matrix and then use Paste on the
MatLab window bar to down load (therefore initialize) the matrix.
- Let A=[-1 9 4;2 -3 -6;0 5 7] a 3x3 matrix, B=[-4 9 2;3 -5 7;8 1 -6]
a 3x3 matrix, C=[1 -2 3 2;3 1 -1 4] a 2x4 matrix and D=[a;b;c;d] a 4x1 matrix.
Use MatLab to compute the following.
- (a) 2A-3B; (b) A2; (c) AB-BA; (d) (A+AT)/2
- (a) D+D; (b) DTD; (c) DDT; (d) CD
- Let A=[1 -2 1 1 2;-1 3 0 2 -2;0 1 1 3 4;1 2 5 13 5], b1=[1;2;3;4],
b2=[4;-12;-4;-25].
- Find the rank of A.
- Find the rank of the augmented matrix [A | b1] and determine if
the system Ax=b1 has a unique solution, no solution or infinitely many
solutions.
- Find the rank of the augmented matrix [A | b2] and determine if
the system Ax=b2 has a unique solution, no solution or infinitely many
solutions.