summaryrefslogtreecommitdiff
path: root/macros/spectral_adf.sci
blob: ea81f422ae0b0ecc4debfcb09c070184b8a8f9ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function y= spectral_adf(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("spectral_adf", x);
	case 2 then
		y= callOctave("spectral_adf", x , varargin(1));
	case 3 then
		y= callOctave("spectral_adf", x , varargin(1), varargin(2));

end
endfunction