From: shewan on
1)Write an m-file which finds the inverse of an nxn matrix by Gauss Jordan elimination.

2)Write an m-file which finds an orthogonal matrix P that diagonalize an mxn matrix A. Then, find the diagonal matrix D, i.e., D=PT AP.

Hint: Apply three steps in Chapter 7.3. To find bases of an eigenspace of a matrix, use eig function of Matlab

Example:[V,D] =eig(A) produces matrices of eigenvalues (D) and eigenvectors (V) of matrix A.
From: Walter Roberson on
shewan wrote:
> 1)Write an m-file which finds the inverse of an nxn matrix by Gauss Jordan elimination.
>
> 2)Write an m-file which finds an orthogonal matrix P that diagonalize an mxn matrix A. Then, find the diagonal matrix D, i.e., D=PT AP.
>
> Hint: Apply three steps in Chapter 7.3. To find bases of an eigenspace of a matrix, use eig function of Matlab
>
> Example:[V,D] =eig(A) produces matrices of eigenvalues (D) and eigenvectors (V) of matrix A.

Kind of difficult for us to do when you haven't told us what 'Chapter
7.3' refers to. You wouldn't want us to do your homework for you and
then have you accidentally fail because we didn't follow the steps in
Chapter 7.3, would you? I think it pretty likely that I don't have the
exact book you are working from, but if you post your professor's email
address, I could ask him or her to send me the relevant material.