Let A Compute the Singular Value Decomposition over Ccomplex
Let A:=
Compute the Singular Value Decomposition (over C{complex}) and the pseudoinverse of A.
| -3 | 0 | 1 | 2 |
| 4 | 0 | 0 | 0 |
| 0 | 0 | 1 | 2 |
Solution
Use this matlab code for obtianing SVD:
clc
clear
a=[-3 0 1 2;4 0 0 0;0 0 1 2]
fprintf(\'singular value decomposition \"s\" \')
s=svds(a)%finding svds
fprintf(\'pseudoinversre of \"a\" is given by \"b\" \')
b=pinv(a)
Answer you will get is
a =
-3 0 1 2
4 0 0 0
0 0 1 2
singular value decomposition \"s\"
s =
5.2500
2.7272
0.0000
pseudoinversre of \"a\" is given by \"b\"
b =
-0.0732 0.1951 0.0732
0 0 0
0.0780 0.0585 0.1220
0.1561 0.1171 0.2439
>>
