summaryrefslogtreecommitdiff
path: root/mean_pred.m
diff options
context:
space:
mode:
Diffstat (limited to 'mean_pred.m')
-rw-r--r--mean_pred.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/mean_pred.m b/mean_pred.m
new file mode 100644
index 0000000..bc0edd0
--- /dev/null
+++ b/mean_pred.m
@@ -0,0 +1,5 @@
+function pred_mat = mean_pred(data, days)
+
+ pred_mat = repmat(mean(data), days, 1);
+
+endfunction