use of convhulln
Ben Abbott
bpabbott at mac.com
Tue Feb 17 15:52:04 CST 2009
On Tuesday, February 17, 2009, at 03:34PM, "Kai Habel" <kai.habel at gmx.de> wrote:
>John W. Eaton schrieb:
>> On 13-Feb-2009, fred wrote:
>>
>> | In MatLab the following command can be used to calculated the indices k
>> | that comprise the facets of the convex hull of X:
>> | k = convhulln(X)
>> |
>> | This also works in Octave. However, in MatLab the volume of the convex
>> | hull can be calculated using:
>> |
>> | [k v] = convhulln(X).
>> |
>> | Octave gives in this case the following error:
>> |
>> | error: element number 2 undefined in return list
>> |
>> | How can I calculate the volume of the convex hull in Octave?
>>
>> Someone needs to implement the missing functionality in Octave's
>> convhuln function...
>>
>> jwe
>> _______________________________________________
>> Bug-octave mailing list
>> Bug-octave at octave.org
>> https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave
>>
>O.k. this was easier than expected. Attached is a changeset that adds
>the volume calculation. I could not cross-check with matlab today. So,
>it would be nice if someone (maybe the OP) could check it with some real
>application. Simple tests like a cube or a tetrahedron give the expected
>results.
>
>Kai
Kai,
If you provide some examples, I'm happy to run them by Matab.
Ben
More information about the Bug-octave
mailing list