summaryrefslogtreecommitdiff
path: root/macros/xcov1.sci
blob: 4c1f37e4a761fba1323198061410dbb98bb952a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function [R,lag] = xcov1(X, Y, biasflag)

funcprot(0);
rhs = argn(2)
if(rhs<1 | rhs>3)
error("Wrong number of input arguments.");
end

	select(rhs)
	case 1 then
	[R,lag] = callOctave("xcov",X);
	case 2 then
	[R,lag] = callOctave("xcov",X,Y);
	case 3 then
	[R,lag] = callOctave("xcov",X,Y,biasflag);
	end
endfunction