summaryrefslogtreecommitdiff
path: root/macros/hanning.sci
blob: 85860c859da088cb56f3e91816ed2f6558008995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function y = hanning(m, varargin)

funcprot(0);
rhs= argn(2);
if(rhs <1 | rhs>2)
error("Wrong number of Input parameters");
end

select(rhs)
	case 1 then
		y= callOctave("hanning", m);
	case 2 then
		y= callOctave("hanning", m , varargin(1));
end
endfunction