diff options
author | Abhinav Dronamraju | 2017-11-27 15:25:37 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-11-27 15:25:37 +0530 |
commit | b7969c62478edc84055e71df9fed140402406396 (patch) | |
tree | 048b7c76423fe27dee2e31a52bae93c95883614e /macros/fftconv.sci | |
parent | 2bb28947f9736c1c65dd338bf1bc8fcc2570b22d (diff) | |
parent | d972a68bc5b3c4c059b70e4f8cd64a64538c2be8 (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-b7969c62478edc84055e71df9fed140402406396.tar.gz FOSSEE-Signal-Processing-Toolbox-b7969c62478edc84055e71df9fed140402406396.tar.bz2 FOSSEE-Signal-Processing-Toolbox-b7969c62478edc84055e71df9fed140402406396.zip |
Merge with upstream
Diffstat (limited to 'macros/fftconv.sci')
-rw-r--r-- | macros/fftconv.sci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/macros/fftconv.sci b/macros/fftconv.sci new file mode 100644 index 0000000..4ec2815 --- /dev/null +++ b/macros/fftconv.sci @@ -0,0 +1,15 @@ +function y = fftconv(X, Y, varargin) + +funcprot(0); +rhs = argn(2) +if(rhs<2 | rhs>3) +error("Wrong number of input arguments."); +end + + select(rhs) + case 2 then + y = callOctave("fftconv", X, Y); + case 3 then + y = callOctave("ifftn",X, Y, varargin(1)); + end +endfunction |