![]()
MATH347DS L09: SVD computations, pseudo-inverse, model reduction
|
SVD visualization
Computing the SVD
![]()
SVD visualization
|
Consider
Obtain above figure by:
Place on the unit circle:
Compute
Plot ,
![]()
SVD computation
|
From deduce , , hence is the eigenvector matrix of , and is the eigenvector matrix of
SVD computation is carried out by solving eigenvalue problems
octave> |
A=[2 -1; -3 1]; [U S2]=eig(A*A'); [V S2]=eig(A'*A); S=sqrt(S2); disp([ U S V']); |
-0.81742 -0.57605 0.25878 0.00000 -0.36060 -0.93272
-0.57605 0.81742 0.00000 3.86433 -0.93272 0.36060
The Octave/Matlab svd function carries out both eigenvalue problems efficiently
octave> |
[U S V]=svd(A); disp([U S V']); |
-0.57605 0.81742 3.86433 0.00000 -0.93272 0.36060
0.81742 0.57605 0.00000 0.25878 -0.36060 -0.93272
octave> |
disp([U*U' U'*U V*V' V'*V]); |
1 0 1 0 1 0 1 0
0 1 0 1 0 1 0 1
octave> |