# HG changeset patch # User John W. Eaton # Date 1324912667 18000 # Node ID b8d9530e940e2e63793b9745e9ba7e6950e30436 # Parent 9627d5134a12fee1a9c46757310974575acbf64c undo non-documentation changes in changeset 614505385171 * polyfit.m: Undo previous change. diff -r 9627d5134a12 -r b8d9530e940e scripts/polynomial/polyfit.m --- a/scripts/polynomial/polyfit.m Sun Dec 25 15:45:15 2011 -0500 +++ b/scripts/polynomial/polyfit.m Mon Dec 26 10:17:47 2011 -0500 @@ -81,6 +81,8 @@ error ("polyfit: N must be a non-negative integer"); endif + y_is_row_vector = (rows (y) == 1); + ## Reshape x & y into column vectors. l = numel (x); x = x(:); @@ -97,7 +99,7 @@ if (nargout > 1) yf = v*p; - if (isrow (y)) + if (y_is_row_vector) s.yf = yf.'; else s.yf = yf;