diff options
Diffstat (limited to 'macros/czt.sci')
-rw-r--r-- | macros/czt.sci | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/macros/czt.sci b/macros/czt.sci index f7c4138..74fcb06 100644 --- a/macros/czt.sci +++ b/macros/czt.sci @@ -1,23 +1,24 @@ -/*Description - Chirp z-transform. Compute the frequency response starting at a and stepping by w for m steps. a is a point in the complex plane, - and w is the ratio between points in each step (i.e., radius increases exponentially, and angle increases linearly). - Calling Sequence - czt (x) - czt (x, m) - czt (x, m, w) - czt (x, m, w, a) - Parameters - x: Input scalar or vector - m: Total Number of steps - w: ratio between points in each step - a: point in the complex plane - Examples: This example uses the czt function to determine the frequency components of a signal, as shown in the following - t=linspace(0,50,1000); - f=linspace(0,3,1000); - x_t=sin(t) + cos(t*2*%pi); - x_f=czt(x_t); - plot(f,abs(x_f)); */ function y = czt(x, m, w, a) +// Description +// Chirp z-transform. Compute the frequency response starting at a and stepping by w for m steps. a is a point in the complex plane, +// and w is the ratio between points in each step (i.e., radius increases exponentially, and angle increases linearly). +// Calling Sequence +// czt (x) +// czt (x, m) +// czt (x, m, w) +// czt (x, m, w, a) +// Parameters +// x: Input scalar or vector +// m: Total Number of steps +// w: ratio between points in each step +// a: point in the complex plane +// Examples: This example uses the czt function to determine the frequency components of a signal, as shown in the following +// t=linspace(0,50,1000); +// f=linspace(0,3,1000); +// x_t=sin(t) + cos(t*2*%pi); +// x_f=czt(x_t); +// plot(f,abs(x_f)); + funcprot(0); nargin=argn(2); if nargin < 1 || nargin > 4 then |