summaryrefslogtreecommitdiff
path: root/macros/yulewalker.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/yulewalker.sci')
-rw-r--r--macros/yulewalker.sci24
1 files changed, 24 insertions, 0 deletions
diff --git a/macros/yulewalker.sci b/macros/yulewalker.sci
new file mode 100644
index 0000000..ebcb8aa
--- /dev/null
+++ b/macros/yulewalker.sci
@@ -0,0 +1,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
+
+