Description
(1) Generate M a 3 × 3 real matrix with random entries ranging from 0 to 1.
Compute M\b where
b =
1
3
7
.
Do this 100 times. Is there always a solution? Why do you think this is?
(2) Set up the system of equations to solve the following magic matrix. Use the
comment ‘%’ to write out the equations. Explicitly write the magic matrix
in your diary file.
2 ? 6
? 5 ?
? ? ?
Hint: Use the row/column sum as an additional variable.
HW GUIDELINES
• Turn in a diary file.
• Make sure that your submission is .txt and do not compress the file(s).
• Include all .m files, do not compress these, submit them individually.

