# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1320448527 14400 # Node ID aa0cba2256f4cbb519ba6e79c17a55ff9961c5cc # Parent 94a37dae80a94b0f5f26234c11a4e60b7e48bed2 Group the ols matrix operation in a smarter way diff --git a/scripts/statistics/base/ols.m b/scripts/statistics/base/ols.m --- a/scripts/statistics/base/ols.m +++ b/scripts/statistics/base/ols.m @@ -114,7 +114,7 @@ if (p) beta = pinv (x) * y; else - beta = u \ (u' \ x' * y); + beta = u \ (u' \ (x' * y)); endif if (isargout (2) || isargout (3))