It is easy to check whether two matrices A and B are equal or not. For example,
ID: 3833575 • Letter: I
Question
It is easy to check whether two matrices A and B are equal or not. For example, length (find (A ~= B)) should be 0 if they are equal and something positive if they are not equal. Using this write a pseudocode that determines whether (a) the rows (b) the columns of a matrix U are orthonormal (with respect to the standard inner product) or not. The input is one matrix and out is 'yes' or 'no'. (Matlab command for identity matrix is 'eye') Repeat previous problem for the elliptic inner product (|)C with respect to matrix C. The inputs are two matrices (one of them is C) and the output is 'yes' or 'no'.Explanation / Answer
2. Pseudo code:
a)
Input: Matrix U
b)
Input: Matrix U
3.
a)
Input: matrix C
1.Find matrix A, A=<.|.>C
2.Find B=ATC
3.Ca=(B~=eye)
4.If Ca==0, Output Yes
b)
Input: Matrix C
1.Find matrix A, A=<.|.>C
2.Find B=ACT
3.Ca=(B~=eye)
4.If Ca==0, Output Yes
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.