summaryrefslogtreecommitdiff
path: root/macros/hamming.sci
blob: 6fa9a12227d6fdb2c3b102e699c0e3619adf65df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function y = hamming(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("hamming", m);
	case 2 then
		y= callOctave("hamming", m , varargin(1));
end
endfunction