diff options
Diffstat (limited to 'macros/upfirdn.sci')
-rw-r--r-- | macros/upfirdn.sci | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/macros/upfirdn.sci b/macros/upfirdn.sci index 9068db0..cc474b5 100644 --- a/macros/upfirdn.sci +++ b/macros/upfirdn.sci @@ -9,6 +9,12 @@ // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in + + + + + +function yout = upfirdn(xin,h,p,q) //Function y=upfirdn(xin,h,p,q) // //this function upsamples the input data xin by factor "p", filters it using fiter coefficients "h" and the downsamples this filtered data by a factor "q". @@ -16,21 +22,12 @@ //1)Upsampling(Interpolation) //2)Filtering //3)Downsampling(Decimation) - - //Test cases: - //1.yout=upfirdn (1:100, 1, 1, 1) //Expected output: yout=1:100 - //2.yout=upfirdn (1:100, 1, 1, 2) //Expected outut: yout=1:2:100 - - - -function yout = upfirdn(xin,h,p,q) - [nargout,nargin]=argn(); if(nargin < 2) |