diff options
author | Abhinav Dronamraju | 2017-11-30 12:11:52 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-11-30 12:11:52 +0530 |
commit | 61f5e86e353f1332928e716cf9c730b4c5ec357d (patch) | |
tree | bfb2e64ccc143e3affaa88fea05c72fa1207ab10 /macros/fftconv.sci | |
parent | 78b93a6cdf04aa8c861d4580eec8e4839bb8a255 (diff) | |
parent | 8e9af4404bedd0fc7ff9c34bf8b794d6b8602b36 (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-61f5e86e353f1332928e716cf9c730b4c5ec357d.tar.gz FOSSEE-Signal-Processing-Toolbox-61f5e86e353f1332928e716cf9c730b4c5ec357d.tar.bz2 FOSSEE-Signal-Processing-Toolbox-61f5e86e353f1332928e716cf9c730b4c5ec357d.zip |
Merged with master upstream
Diffstat (limited to 'macros/fftconv.sci')
-rw-r--r-- | macros/fftconv.sci | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/macros/fftconv.sci b/macros/fftconv.sci index 4ec2815..d39441d 100644 --- a/macros/fftconv.sci +++ b/macros/fftconv.sci @@ -1,5 +1,16 @@ function y = fftconv(X, Y, varargin) - +//Convolve two vectors using the FFT for computation. +//Calling Sequence +//Y = fftconv(X, Y) +//Y = fftconv(X, Y, N) +//Parameters +//X, Y: Vectors +//Description +//Convolve two vectors using the FFT for computation. 'c' = fftconv (X, Y)' returns a vector of length equal to 'length(X) + length (Y) - 1'. If X and Y are the coefficient vectors of two polynomials, the returned value is the coefficient vector of the product polynomial. +//Examples +//fftconv([1,2,3], [3,4,5]) +//ans = +// 3. 10. 22. 22. 15. funcprot(0); rhs = argn(2) if(rhs<2 | rhs>3) @@ -10,6 +21,6 @@ end case 2 then y = callOctave("fftconv", X, Y); case 3 then - y = callOctave("ifftn",X, Y, varargin(1)); + y = callOctave("fftconv",X, Y, varargin(1)); end endfunction |