Mercurial > hg > octave-lojdl
changeset 14278:fa894f89b18f
convhull.m: Ensure column (not row) vectors
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Sun, 29 Jan 2012 00:52:19 -0500 |
parents | c39345616b7e |
children | f205d0074687 |
files | scripts/geometry/convhull.m |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/geometry/convhull.m +++ b/scripts/geometry/convhull.m @@ -45,13 +45,9 @@ print_usage (); endif - if (! isvector(x)) - x = x(:); - endif - - if (! isvector(y)) - y = y(:); - endif + ## convhulln expects column vectors + x = x(:); + y = y(:); if (length (x) != length (y)) error ("convhull: X and Y must have the same size");