summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci
blob: 0e68e003b9674d2ede3f39a7c8a1ce3278de7394 (plain)
1
2
3
4
5
6
7
8
9
10
11
function testsvdreal()
    disp(" ** SVD Function (Singular Value Decomposition)** ")
    A = [1,2,3,11;4,5,6,12;7,8,9,13] // Matrix - A
    [u,s,vt] = svd(A)               // Calling Function Sequence 
    disp("U  Matrix")           
    disp(u)                         // A = U*sigma*Vt
    disp("Sigma  Matrix")
    disp(s)
    disp(" V transpose ")
    disp(vt)
endfunction