summaryrefslogtreecommitdiff
path: root/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci
diff options
context:
space:
mode:
authorSandeep Gupta2017-07-07 13:09:29 +0530
committerSandeep Gupta2017-07-07 13:09:29 +0530
commit59190035a74ebad7543660d54fa4e89cf24d8e6f (patch)
tree89beb7cdfae963fe1ab2b21c1d9b581a4010aba3 /tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci
parentaa250753b439916e4df235839e9266f058632f80 (diff)
downloadScilab2C_fossee_old-59190035a74ebad7543660d54fa4e89cf24d8e6f.tar.gz
Scilab2C_fossee_old-59190035a74ebad7543660d54fa4e89cf24d8e6f.tar.bz2
Scilab2C_fossee_old-59190035a74ebad7543660d54fa4e89cf24d8e6f.zip
Demo-updated
Diffstat (limited to 'tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci')
-rw-r--r--tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci
new file mode 100644
index 0000000..0459c79
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci
@@ -0,0 +1,11 @@
+function testsvdeconomy()
+ 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,'e') // Calling Function Sequence
+ disp("U Matrix")
+ disp(u) // A = U*sigma*Vt
+ disp("Sigma Matrix")
+ disp(s)
+ disp(" V transpose ")
+ disp(vt)
+endfunction