Linear Algebra MATLAB...HELP!?

Linear Algebra MATLAB...HELP!?



1. Generate a matrix A by setting

A = floor(10 * rand(6))

and generate a vector b by setting

b = floor(20*rand(6,1)) - 10

(a) Since A was generated randomly, we would expect it to be non-singular. The system Ax = b should have a unique solution. Find the solution using the "\" operation. Use MATLAB to compute the reduced row echelon form U of [A b]. How does the last column of U compare with the solution x? In exact arithmetic, they should be the same. Why? Explain. To compare the two, compute the difference U (:, 7) -x or examine both using format long.

(b) Let us now change A so as to make it singular. Set

A(:, 3) = A(:, 1: 2) * [4 3]'

Use MATLAB to compute rref([A b]). How many solutions will the system Ax = b have? Explain.





No Answers Posted Yet.