diff options
author | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2021-08-19 08:00:30 +0100 |
---|---|---|
committer | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2021-08-19 08:00:30 +0100 |
commit | db01e1264a89e5a40f1e730d9d80679faf6943f8 (patch) | |
tree | c562de9297a7074b3c133e73eccfd9db8a876d27 /Test | |
parent | f21c09ccf01ed230c1fe7e388a6208432251cbf1 (diff) | |
download | NaiveFFT-db01e1264a89e5a40f1e730d9d80679faf6943f8.tar.gz NaiveFFT-db01e1264a89e5a40f1e730d9d80679faf6943f8.zip |
workinf dft and fft. Octave test file
Diffstat (limited to 'Test')
-rw-r--r-- | Test/test_fft.m | 12 |
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) |