summaryrefslogtreecommitdiff
path: root/macros/bohmanwin.sci
blob: 183637ca0353c0f8ec204970f3ad0788494c0301 (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
function y = bohmanwin (m)
//This function returns the filter coefficients of a Bohman window. 
//Calling Sequence
//y = bohmanwin (m)
//Parameters 
//m: positive integer value
//y: output variable, vector of real numbers 
//Description
//This is an Octave function.
//This function returns the filter coefficients of a Bohman window of length m supplied as input, to the output vector y.
//Examples
//bohmanwin(4)
//ans  =
//    0.         
//    0.6089978  
//    0.6089978  
//    0.      

rhs = argn(2)

if(rhs~=1)
error("Wrong number of input arguments.")
end

y = callOctave("bohmanwin",m)

endfunction