summaryrefslogtreecommitdiff
path: root/macros/hurst.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/hurst.sci')
-rw-r--r--macros/hurst.sci13
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/hurst.sci b/macros/hurst.sci
new file mode 100644
index 0000000..1a99f8c
--- /dev/null
+++ b/macros/hurst.sci
@@ -0,0 +1,13 @@
+function y = hurst(x)
+
+funcprot(0);
+rhs= argn(2);
+if(rhs<1 | rhs>1)
+ error("Wrong number of input arguments");
+end
+
+select(rhs)
+ case 1 then
+ y= callOctave("hurst", x);
+end
+endfunction