diff options
author | Brijeshcr | 2017-07-07 18:19:27 +0530 |
---|---|---|
committer | GitHub | 2017-07-07 18:19:27 +0530 |
commit | 8ec9e70b6ffffb927a28941554cf18a822892d72 (patch) | |
tree | 082485f6bd03f8f0044066337699fbcf985f5e5a /tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci | |
parent | 2340409c98f9b15bb23944b991e97a1aa4e88ce0 (diff) | |
parent | 17a346fca351d03579d343a9debaa68acdd844d9 (diff) | |
download | Scilab2C_fossee_old-8ec9e70b6ffffb927a28941554cf18a822892d72.tar.gz Scilab2C_fossee_old-8ec9e70b6ffffb927a28941554cf18a822892d72.tar.bz2 Scilab2C_fossee_old-8ec9e70b6ffffb927a28941554cf18a822892d72.zip |
Merge branch 'master' into master
Diffstat (limited to 'tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci')
-rw-r--r-- | tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci new file mode 100644 index 0000000..108acde --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci @@ -0,0 +1,13 @@ +function testsvdrank() + disp(" ** SVD Function (Singular Value Decomposition)** ") + A = [1,2,3,11;4,5,6,12;7,8,9,13] // Matrix - A + [u,s,vt,rk] = svd(A) // Calling Function Sequence + disp("U Matrix") + disp(u) // A = U*sigma*Vt + disp("Sigma Matrix") + disp(s) + disp(" V transpose ") + disp(vt) + disp("Rank") + disp(rk) +endfunction |