summaryrefslogtreecommitdiff
path: root/macros/detrend1.sci
blob: b9929f420a49bdc8e6337bce8698009b19b68e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function y = detrend1(x, varargin)
	rhs= argn(2);
	if(rhs<1 | rhs> 2)
		error("Wrong number of input arguments");
	end
	select(rhs)
	case 1 then
		y= callOctave("detrend", x);
	case 2 then
		y= callOctave("detrend", x , varargin(1));
	end
endfunction