summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2021-08-19 08:00:30 +0100
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2021-08-19 08:00:30 +0100
commitdb01e1264a89e5a40f1e730d9d80679faf6943f8 (patch)
treec562de9297a7074b3c133e73eccfd9db8a876d27 /Test
parentf21c09ccf01ed230c1fe7e388a6208432251cbf1 (diff)
downloadNaiveFFT-db01e1264a89e5a40f1e730d9d80679faf6943f8.tar.gz
NaiveFFT-db01e1264a89e5a40f1e730d9d80679faf6943f8.zip
workinf dft and fft. Octave test file
Diffstat (limited to 'Test')
-rw-r--r--Test/test_fft.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/test_fft.m b/Test/test_fft.m
new file mode 100644
index 0000000..4a11a09
--- /dev/null
+++ b/Test/test_fft.m
@@ -0,0 +1,12 @@
+
+data1 = [1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0]
+res1 = fft(data1)
+
+data2 = [1.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0]
+res2 = fft(data2)
+
+data3 = [1.0 1.0 i i 0.0 0.0 0.0 0.0]
+res3 = fft(data3)
+
+data4 = [1.0+i 1.0+i 1.0+i 1.0+i 0.0 0.0 0.0 0.0]
+res4 = fft(data4)