[p, q] = get_products(); meanerr = quad_error(q(29:42, :), mean_pred(q(1:28, :), 14))