svdΒΆ
Singular value decomposition.
- s = svd(m)
- <u, s, v> = svd(m)
Example
* m = [1,3,5,7;2,4,6,8]'
* m
1.0000 2.0000
3.0000 4.0000
5.0000 6.0000
7.0000 8.0000
* svd(m)
14.2691 0.6268
* <u,s,v> = svd(m)
* u
-0.1525 -0.8226 -0.3945 -0.3800
-0.3499 -0.4214 0.2428 0.8007
-0.5474 -0.0201 0.6979 -0.4614
-0.7448 0.3812 -0.5462 0.0407
* s
14.2691 0.0000
0.0000 0.6268
0.0000 0.0000
0.0000 0.0000
* v
-0.6414 -0.7672
0.7672 -0.6414
* u*s*v
1.0000 2.0000
3.0000 4.0000
5.0000 6.0000
7.0000 8.0000
History
Version |
Description |
---|---|
5.14.0 |
New |
See also
id-1405432