diff options
author | Abhinav Dronamraju | 2017-11-10 14:59:26 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-11-10 14:59:26 +0530 |
commit | 47535ab08afeb48fbb00f03e68d6ff973cf62cbd (patch) | |
tree | 732f6946451fb15f5639fe454ef17fbba2d5012f /macros/remez1.sci | |
parent | c54a48768d92ccf0f268b4b3b1a762c154865a02 (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-47535ab08afeb48fbb00f03e68d6ff973cf62cbd.tar.gz FOSSEE-Signal-Processing-Toolbox-47535ab08afeb48fbb00f03e68d6ff973cf62cbd.tar.bz2 FOSSEE-Signal-Processing-Toolbox-47535ab08afeb48fbb00f03e68d6ff973cf62cbd.zip |
Functions added
Diffstat (limited to 'macros/remez1.sci')
-rw-r--r-- | macros/remez1.sci | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/remez1.sci b/macros/remez1.sci new file mode 100644 index 0000000..aabb25e --- /dev/null +++ b/macros/remez1.sci @@ -0,0 +1,21 @@ +function b = remez1(n,f,a, varargin) + +funcprot(0); +rhs= argn(2); + +if(rhs<3 | rhs>6) +error("Wrong number of input arguments"); +end + +select(rhs) + + case 3 then + b= callOctave("remez", n,f,a); + case 4 then + b= callOctave("remez", n,f,a,varargin(1)); + case 5 then + b= callOctave("remez", n,f,a,varargin(1), varargin(2)); + case 6 then + b= callOctave("remez", n,f,a,varargin(1), varargin(2), varargin(3)); +end +endfunction |