summaryrefslogtreecommitdiff
path: root/macros/xcorr2.sci
blob: 688dc3ad4087b635061b89720886b28194e54585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function c = xcorr2 (a, b, biasflag)
//
//Calling Sequence
//c = xcorr2 (a)
//c = xcorr2 (a, b)
//c = xcorr2 (a, b, biasflag)
//Parameters 
//a:
//b:
//biasflag:
//Description
//This is an Octave function.

//Examples
//xcorr2(5,0.8,'coeff')
//ans =  1

funcprot(0);

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

	select(rhs)
	case 1 then
	c = callOctave("xcorr2",a);
	case 2 then
	c = callOctave("xcorr2",a,b);
	case 3 then
	c = callOctave("xcorr2",a,b,biasflag);
	end;
endfunction