diff options
author | rupak | 2020-01-21 19:05:09 +0530 |
---|---|---|
committer | rupak | 2020-01-21 19:05:09 +0530 |
commit | d2f4d30ebcad7430e4f0495cae5c2b3a16be73ce (patch) | |
tree | 8987d169ad87e930f137122a450c02dc5d13dcc5 /macros/finddelay.sci | |
parent | 36aca8aaaee5cf8cb5452268fd07c0b558b000a3 (diff) | |
download | FOSSEE-Communication-Systems-Toolbox-d2f4d30ebcad7430e4f0495cae5c2b3a16be73ce.tar.gz FOSSEE-Communication-Systems-Toolbox-d2f4d30ebcad7430e4f0495cae5c2b3a16be73ce.tar.bz2 FOSSEE-Communication-Systems-Toolbox-d2f4d30ebcad7430e4f0495cae5c2b3a16be73ce.zip |
Diffstat (limited to 'macros/finddelay.sci')
-rw-r--r-- | macros/finddelay.sci | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/macros/finddelay.sci b/macros/finddelay.sci index eb8e96a..00d6755 100644 --- a/macros/finddelay.sci +++ b/macros/finddelay.sci @@ -1,16 +1,16 @@ function d = finddelay(x,y,varargin) // This function returns the estimated delay between two input signals using crosscorrelation. // If signals are periodic, delay with least absolute value is returned. - +// // Calling Sequence // D = FINDDELAY(X,Y) // D = FINDDELAY(...,MAXLAG) - +// // Description // D = FINDDELAY(X,Y), returns estimated Delay D between X // and Y. D is positive implies Y is delayed with respect to X and vice versa. // If X, Y are matrices, then D is a row vector corresponding to delay between columns of X and Y - +// // D = FINDDELAY(...,MAXLAG), uses MAXLAG as the maximum correlation // window size used to find the estimated delay(s) between X and Y: // @@ -29,7 +29,7 @@ function d = finddelay(x,y,varargin) // -MAXLAG(J):MAXLAG(J). // // By default, MAXLAG is equal to MAX(LX,LY)-1 for vectors, - +// // Examples // X = [ 0 0 1 2 3 ]; // Y = [ 0 0 0 1 2 3]; @@ -39,12 +39,9 @@ function d = finddelay(x,y,varargin) // Y = [ 0 0 1 0 ;1 0 0 2 ; 0 0 0 0 ]; // D = finddelay(X,Y) // disp(D) - -// See also -// alignsignals - +// // Authors -// Pola Lakshmi Priyanka, IIT Bombay// +// Pola Lakshmi Priyanka, IIT Bombay //*************************************************************************************************************************************// |