summaryrefslogtreecommitdiff
path: root/macros/yulewalker.sci
blob: ebcb8aaf1c82947d601f2f08e53a86aaccc14734 (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
function [A,V]= yulewalker(C)

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

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

if(lhs<1 | lhs>2)
	error("Wrong number of output arguments");
end

select(lhs)

	case 1 then
		A= callOctave("yulewalker", C);
	case 2 then
		[A,V]= callOctave("yulewalker", C);
end
endfunction