summaryrefslogtreecommitdiff
path: root/tests/unit_tests/testLinearAlgebra/testspec/testspec.sci
diff options
context:
space:
mode:
authorSandeep Gupta2017-07-07 02:30:25 +0530
committerSandeep Gupta2017-07-07 02:30:25 +0530
commit3afee83ada15920249b2ff15fc7c5ee8970bb1cb (patch)
treeb846dcdd0d8d9637b6ece06d56e01a62b5b86ed3 /tests/unit_tests/testLinearAlgebra/testspec/testspec.sci
parenteaa5580ddae3d9d85720dce53796c4035793c2a6 (diff)
downloadScilab2C_fossee_old-3afee83ada15920249b2ff15fc7c5ee8970bb1cb.tar.gz
Scilab2C_fossee_old-3afee83ada15920249b2ff15fc7c5ee8970bb1cb.tar.bz2
Scilab2C_fossee_old-3afee83ada15920249b2ff15fc7c5ee8970bb1cb.zip
SPEC Function
Diffstat (limited to 'tests/unit_tests/testLinearAlgebra/testspec/testspec.sci')
-rw-r--r--tests/unit_tests/testLinearAlgebra/testspec/testspec.sci9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit_tests/testLinearAlgebra/testspec/testspec.sci b/tests/unit_tests/testLinearAlgebra/testspec/testspec.sci
new file mode 100644
index 0000000..6e9346d
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testspec/testspec.sci
@@ -0,0 +1,9 @@
+function testspec()
+ A = [1,2,3;4,5,6;7,8,9]
+ B = [10,11,12;13,14,15;16,17,18]
+ [R,diagevals,c,d] = spec(A,B)
+ disp(R)
+ disp(diagevals)
+ disp(c)
+ disp(d)
+endfunction