Plotting hyperplane([1;0;0],0.5)

19 views
Skip to first unread message

Bernardo

unread,
Apr 20, 2009, 1:14:38 PM4/20/09
to ellipsoids
Hi,

I was trying to plot an hyperplane such as x = 0.5 -> hyperplane
([1;0;0],0.5), in R^3, but I get the following error

>> ha = hyperplane([1;0;0],0.5)
Initializing Ellipsoidal Toolbox version 1.1.1 ...

ha =

Normal:
1
0
0

Shift:
0.5000

Hyperplane in R^3.

>> plot(ha)
Plotting hyperplane...
??? Error using ==> qhullmx
qhull input error: 0'th dimension's new bounds [-0.5, 0.5] too wide
for
existing bounds [0.5, 0.5]


While executing: | qhull QJ QbB Qs QR0

Options selected for Qhull 2003.1 2003/12/30:
QbBound-unit-box 0.5 Qsearch-initial-simplex QRotate-random
1240247402



Error in ==> convhulln at 71
[k,vv] = qhullmx(x', opt);

Error in ==> hyperplane.plot at 276
ch = convhulln([x1 x3 x2 x4]', {'QJ', 'QbB', 'Qs', 'QR0'});

The line where the error is reported appears as 276 because I've
changed hyperplane\plot.m as suggested in http://code.google.com/p/ellipsoids/issues/detail?id=2
. Before the changes, I had the error as well.

Is this a bug or am I missing something?

Best regards,
/Bernardo

Alex

unread,
Apr 22, 2009, 8:25:18 PM4/22/09
to ellipsoids
Bernardo,

This turned out to be a problem with convhulln() function in later
versions of MATLAB.
It doesn't like 2D surfaces in 3D space.

I fixed the '@hyperplane/plot.m' function and posted it in the
Downloads section.
This updated function should take care of the problem.

Alex.
> changed hyperplane\plot.m as suggested inhttp://code.google.com/p/ellipsoids/issues/detail?id=2
Reply all
Reply to author
Forward
0 new messages