diff options
author | Brijeshcr | 2017-11-10 15:10:05 +0530 |
---|---|---|
committer | Brijeshcr | 2017-11-10 15:10:05 +0530 |
commit | cc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5 (patch) | |
tree | 8ab91353da76f22bc6e54a2b133bbbfd4aeb6aff /macros/remez1.sci | |
parent | 6e1e4362783f68a8e8be1d199337c1ca831a2994 (diff) | |
parent | 9f6962b19c4a5fa76f7525a72faabb1b754712ad (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-cc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5.tar.gz FOSSEE-Signal-Processing-Toolbox-cc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5.tar.bz2 FOSSEE-Signal-Processing-Toolbox-cc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5.zip |
merged upstream
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 |