octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53979] convhull(pts) and convhull(X, Y, Z) sh


From: anonymous
Subject: [Octave-bug-tracker] [bug #53979] convhull(pts) and convhull(X, Y, Z) should work
Date: Fri, 25 May 2018 01:32:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?53979>

                 Summary: convhull(pts) and convhull(X,Y,Z) should work 
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 25 May 2018 05:32:46 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: b9
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
        Operating System: GNU/Linux

    _______________________________________________________

Details:

It appears that matlab's convhull() now accepts a single matrix:

    matlab>  convhull(pts)

while Octave still requires separate X and Y arrays:

    octave>  convhull(pts(:,1), pts(:,2))

In addition, matlab's convhull accepts three arrays as representing 3-D
space:

    matlab>  convhull(X, Y, Z)

Octave's convhull is limited to 2-D.

Please compare:

https://octave.org/doc/interpreter/Convex-Hull.html#Convex-Hull
https://www.mathworks.com/help/matlab/ref/convhull.html

I think these two problems should be simple to fix as convenience wrappers to
convhulln.

One slight trickiness might be that the single matrix can be any number of
dimensions, not just 2-D. It is likely that straight mapping to convhulln,
which already handles that, will work, but I am not sure of the details.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53979>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]