Assignment1 Matlab
Assignment1 Matlab
Fill out the following and submit TWO print outs of this page with your assignment. Group
members for which the info is not filled in will receive a mark of 0. The assignment is to be submitted in drop
boxes located on the 4th floor of UA.NOTE: not writing the name of a group member on an assignment she
contributed on OR writing the name of a group member on an assignment she never contributed on is considered
an ACADEMIC MISCONDUCT, AND WILL BE PURSUED ACCORDING TO UOIT RULES.
TA Name:
Student Last Name
Tutorial CRN:
Student First Name
1
2
3
4
The purpose of this assignment is for you to develop some familiarity with the Matlab software; all questions
are to be done using Matlab; where warranted you may have to finish up the question by writing some
conclusion/giving the solution based on the Matlab computation.
Use the diary set-up for this assignment (see posted intro to Matlab), and clearly label the questions
you are doing; make sure your answers to the questions are explicit. Your assignment submission has to be a
print of the diary file you will create.
1. (1 mark each) Solve the following linear systems (if possible, if not state why the system is
inconsistent), by row reduction:
(a)
(b)
x1
3x1
x1
2x1
3x1
x1
2x3
x3
+ x3
+ x3
+ x2
+ 2x2
+ 3x2
2x2
+ 2x2
x2
+ x2
x3
2x3
2x3
+ x4
+ 3x4
4x4
4x4
x4
= 3
= 1
= 12
= 10
3x5
x5
x5
+ 2x5
= 0
= 0
= 0
= 0
2. (2 marks) Solve the system in 1(a) above by the method of matrix inversion. Can you use this
method to solve the system in 1(b)? Justify your answer.
3. (0.5 marks each) Verify the following properties, using any distinct, invertible A, B, 4 4 upper
triangular matrices of your choice:
(a) The inverse of an upper triangular matrix is upper triangular;
(b) (AB)1 = B 1 A1 ;
(c) trace(AB) = trace(BA);
(d) det(AB) = det(BA).
(BONUS 1 mark) Give an example of matrices A, B such that det(AB) 6= det(BA).