summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci
diff options
context:
space:
mode:
authorukashanoor2017-07-07 17:12:14 +0530
committerukashanoor2017-07-07 17:12:14 +0530
commitccf9047acb6f74a67a23659aeb21e6bee6940df7 (patch)
treecdca6ec90248ba07fe151926ad3b80c84b59167e /2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci
parente9de337a34e123749927039f7011fb30fc96f7c9 (diff)
downloadScilab2C-ccf9047acb6f74a67a23659aeb21e6bee6940df7.tar.gz
Scilab2C-ccf9047acb6f74a67a23659aeb21e6bee6940df7.tar.bz2
Scilab2C-ccf9047acb6f74a67a23659aeb21e6bee6940df7.zip
array declaration
Diffstat (limited to '2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci')
-rw-r--r--2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci7
1 files changed, 7 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci b/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci
new file mode 100644
index 00000000..33c44622
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci
@@ -0,0 +1,7 @@
+//SCI2C: DEFAULT_PRECISION= FLOAT
+//test for discrete cosine tranform using precision as float
+function main()
+ b=([5 2 6 7;1 9 7 6+%i])
+ y=dct(b,1) //calling dct
+ disp(y)
+endfunction