summaryrefslogtreecommitdiff
path: root/macros/fwht.sci
blob: 280bbee666a7bf2e980aab05897c1d2c339b1171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function y = fwht(x, varargin)

funcprot(0);
rhs= argn(2);

if(rhs<1 | rhs > 3)
error("Wrong number of input arguments");
end

select(rhs)
	case 1 then
		y= callOctave("fwht", x);
	case 2 then 
		y= callOctave("fwht",x, varagin(1));
	case 3 then
		y= callOctave("fwht",x, varargin(1), varargin(2));
end
endfunction