Index-> contents reference index search Up-> SPT_HELP Window Functions kaiser Prev Next SPT_HELP-> SPTFunctionsByCategory Mathematical Functions Data Manipulation Functions SignalGeneratorMain AnalogFilterFunctions FIR Filter Design Window Functions IIR Filter Design FourierFunctions Plotting Functions Histogram Functions Window Functions-> blackman blackharris3 gaussian hamming hanning kaiser nuttall triang winddata kaiser Headings-> Description Example

Kaiser Window Function
 Syntax `y = kaiser(a,N)` Syntax `y = kaiser(a,N,M)` Include: `include spt\kaiser.oms` See Also Other Window Functions
``` ARGUMENTS:    INPUTS:       a = SCALAR, any numerical type. Coerced to double           precision before processing. 2.0 <= a <= 20.0.       N = SCALAR, any numerical type, >=2. Represents the row           dimension of the requested window. Coerced to INTEGER           before local processing.       M = SCALAR, any numerical type, >=1. Represents the column           dimension of the matrix returned. Coerced to INTEGER           before local processing.    RETURN: MATRIX, DOUBLE, N-point Kaiser window in each column. ```
Description ``` ```Create a N-by-M Kaiser data window matrix. ``` ```This function returns a MATRIX where each column is a Kaiser windowing function of row dimension N. Argument M, which is optional, is used to specify the column dimension for a matrix return. M omitted or M=1 returns a column vector. M<1 returns novalue. N value must be 2 or greater or novalue is returned. N and M may be any numerical type and are coerced to INTEGER before local processing. The return type is DOUBLE. ``` ```Input parameter 'a' adjusts sidelobe attenuation. 'a' must be in the range: 2.0 <= a <= 20.0. 'a' may be any numerical type and is coerced to DOUBLE before local processing.

Example
Make and plot a KAISER window function. ``` N      = 127;                 # Window length header = sprintf(": N = %d",N); header = [name,header]; a      = 8d0; h      = kaiser(a,N); t      = seq(N)-1d0; ```