summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-07-07 23:18:44 +0530
committerBrijeshcr2017-07-07 23:18:44 +0530
commit66947ae0dc7f4dad982728385f1b3c4639a3f671 (patch)
tree9dc98f59f8da0ab53db91d3fe623fb9c422a6781 /2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci
parentab2d4e957b52edb2c04bd524a2c062c8058623c8 (diff)
parentc95aaac087ab0b259b6e60bfe87ce96ac1e10bcc (diff)
downloadScilab2C-66947ae0dc7f4dad982728385f1b3c4639a3f671.tar.gz
Scilab2C-66947ae0dc7f4dad982728385f1b3c4639a3f671.tar.bz2
Scilab2C-66947ae0dc7f4dad982728385f1b3c4639a3f671.zip
Changes Demo
Diffstat (limited to '2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci')
-rw-r--r--2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci
new file mode 100644
index 00000000..0e68e003
--- /dev/null
+++ b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci
@@ -0,0 +1,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