diff options
author | bgtushar | 2017-11-30 12:13:24 +0530 |
---|---|---|
committer | GitHub | 2017-11-30 12:13:24 +0530 |
commit | 14d0ad8d846d12b3c82b0b5bc4ffd4d1360ec288 (patch) | |
tree | bfb2e64ccc143e3affaa88fea05c72fa1207ab10 /macros/hamming.sci | |
parent | 8e9af4404bedd0fc7ff9c34bf8b794d6b8602b36 (diff) | |
parent | 61f5e86e353f1332928e716cf9c730b4c5ec357d (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-14d0ad8d846d12b3c82b0b5bc4ffd4d1360ec288.tar.gz FOSSEE-Signal-Processing-Toolbox-14d0ad8d846d12b3c82b0b5bc4ffd4d1360ec288.tar.bz2 FOSSEE-Signal-Processing-Toolbox-14d0ad8d846d12b3c82b0b5bc4ffd4d1360ec288.zip |
Merge pull request #7 from abhinavdronamraju/master
Merge and add functions
Diffstat (limited to 'macros/hamming.sci')
-rw-r--r-- | macros/hamming.sci | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macros/hamming.sci b/macros/hamming.sci index 6fa9a12..49a970f 100644 --- a/macros/hamming.sci +++ b/macros/hamming.sci @@ -1,4 +1,14 @@ function y = hamming(m, varargin) +//Return the filter coefficients of a Hamming window of length M +//Calling Sequence +//hamming (M) +//hamming (M, "periodic") +//hamming (M, "symmetric") +//Parameters +//M: real scalar, which will be the length of hamming window +//Description +//Return the filter coefficients of a Hamming window of length M. +//If the optional argument "periodic" is given, the periodic form of the window is returned. This is equivalent to the window of length M+1 with the last coefficient removed. The optional argument "symmetric" is equivalent to not specifying a second argument. funcprot(0); rhs= argn(2); if(rhs <1 | rhs>2) |