diff options
author | Rashmi Patankar | 2025-04-30 15:01:49 +0530 |
---|---|---|
committer | GitHub | 2025-04-30 15:01:49 +0530 |
commit | 0495a12104d8466509769fc34271757f00577709 (patch) | |
tree | cb208dd421d39051d85f4ef0476c9208ef2c41ab /macros/upsample.sci | |
parent | a0bff158d21c2c12a12781bc5019f3a45bd866b2 (diff) | |
parent | ec6379e7494ff4ca2dc7c7524013d109be450bae (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.tar.gz FOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.tar.bz2 FOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.zip |
Fixed Failing test scripts
Diffstat (limited to 'macros/upsample.sci')
-rw-r--r-- | macros/upsample.sci | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/macros/upsample.sci b/macros/upsample.sci index 98a9e6d..a40cf34 100644 --- a/macros/upsample.sci +++ b/macros/upsample.sci @@ -9,7 +9,12 @@ // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in -//Calling sequence: + + + + +function y = upsample (x,n,phase ) + //Calling sequence: // y = upsample (x, n) // y = upsample (x, n, offset) // Upsample the signal, inserting n-1 zeros between every element. @@ -19,24 +24,16 @@ // If offset is specified, control the position of the inserted sample in // the block of n zeros. // - //Testcases: //1.upsample([1,3,5],2) //EXPECTED OUTPUT:[1,0,3,0,5,0] - - //2.upsample([1;3;5],2) //EXPECTED OUTPUT:[1;0;3;0;5;0] - - //3.upsample([1,2;5,6;9,10],2) //EXPECTED OUTPUT:[1,2;0,0;5,6;0,0;9,10;0,0] // // - - -function y = upsample (x,n,phase ) [nargout,nargin]=argn() if (nargin<2 | nargin>3), |