diff options
author | Brijeshcr | 2017-07-07 17:09:19 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-07 17:09:19 +0530 |
commit | 282cbe9542cddac862b88d3431a18db9df781ba7 (patch) | |
tree | 2f3f8ed5c72b77cfec057c1e1511ecd0a9467d54 /2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci | |
parent | 46da80312c4bc66bb5f16044c5c5597ac259d419 (diff) | |
parent | 8106d4ce6960cfd63c3a42171fdf5d52e46ccb06 (diff) | |
download | Scilab2C-282cbe9542cddac862b88d3431a18db9df781ba7.tar.gz Scilab2C-282cbe9542cddac862b88d3431a18db9df781ba7.tar.bz2 Scilab2C-282cbe9542cddac862b88d3431a18db9df781ba7.zip |
Linear Algebra changes by Sandeep
Diffstat (limited to '2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci')
-rw-r--r-- | 2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci new file mode 100644 index 00000000..108acde8 --- /dev/null +++ b/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/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 |