blob: eb3b3d899ab2c89e91f537c12f5bfea0e91719bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
function w = gausswin (m, a)
//This function returns the filter coefficients of a Gaussian window.
//Calling Sequence
//w = gausswin (m)
//w = gausswin (m, a)
//Parameters
//m: positive integer value
//a:
//w: output variable, vector of real numbers
//Description
//This is an Octave function.
//This function returns the filter coefficients of a Gaussian window of length m supplied as input, to the output vector w.
//The second parameter is the width measured in sample rate/number of samples and should be f for time domain and 1/f for frequency domain. The width is inversely proportional to a.
//Examples
//gausswin(3)
//ans =
// 0.2493522
// 1.
// 0.2493522
funcprot(0);
rhs = argn(2)
if(rhs<1 | rhs>2)
error("Wrong number of input arguments.")
end
if(rhs==1)
w = callOctave("gausswin",m)
elseif(rhs==2)
w = callOctave("gausswin",m,a)
end
endfunction
|