diff options
author | Sandeep Gupta | 2017-07-07 13:09:29 +0530 |
---|---|---|
committer | Sandeep Gupta | 2017-07-07 13:09:29 +0530 |
commit | 13425b1158d1c0934bd1f7824405036acd53b25b (patch) | |
tree | 7406223434c26b8f222789cb30d3bec68992ed52 /2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci | |
parent | 282cbe9542cddac862b88d3431a18db9df781ba7 (diff) | |
download | Scilab2C-13425b1158d1c0934bd1f7824405036acd53b25b.tar.gz Scilab2C-13425b1158d1c0934bd1f7824405036acd53b25b.tar.bz2 Scilab2C-13425b1158d1c0934bd1f7824405036acd53b25b.zip |
Demo-updated
Diffstat (limited to '2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci')
-rw-r--r-- | 2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci new file mode 100644 index 00000000..0459c790 --- /dev/null +++ b/2.3-1/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 |