1 2 3 4 5 6
function pred_mat = mean_pred(price, data) days = size(price, 1) - size(data, 1); pred_mat = repmat(mean(data), days, 1); endfunction