MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Max distance from point on ellipsoid to surface 

Subject: Max distance from point on ellipsoid to surface From: stefaneli Date: 22 May, 2012 17:07:07 Message: 1 of 8 
I want to find a point on an given ellipsoid that is the farthest from a given surface. (The distance between a point on ellipsoid and the surface should be max). So how can I do this? I was thinking about some kind of Lagrange multipliers. But what do you think? Thanks. 
Subject: Max distance from point on ellipsoid to surface From: Roger Stafford Date: 22 May, 2012 18:59:06 Message: 2 of 8 
"stefaneli" wrote in message <jpgh3q$c1$1@newscl01ah.mathworks.com>... 
Subject: Max distance from point on ellipsoid to surface From: stefaneli Date: 22 May, 2012 19:37:07 Message: 3 of 8 
My surface is determined by a mathematical equation 3x+4y^2+6z+6=0. So basically I need to find tangent plane and normal line(to that tangent plane) at each point of surface and see if that normal line (extended) orthogonally intersects tangent plane of ellipsoid at any point. And Lagrange multipliers would lead this? I'm not sure if I got it right. Thanks. 
Subject: Max distance from point on ellipsoid to surface From: James Tursa Date: 22 May, 2012 20:13:07 Message: 4 of 8 
"stefaneli" wrote in message <jpgh3q$c1$1@newscl01ah.mathworks.com>... 
Subject: Max distance from point on ellipsoid to surface From: Roger Stafford Date: 22 May, 2012 20:21:06 Message: 5 of 8 
"stefaneli" wrote in message <jpgpt3$c6s$1@newscl01ah.mathworks.com>... 
Subject: Max distance from point on ellipsoid to surface From: stefaneli Date: 22 May, 2012 22:05:06 Message: 6 of 8 
Finding a tangent plane and normal line isn't in my formulation of the problem. I wanted to be sure, that I've understood you well. 
Subject: Max distance from point on ellipsoid to surface From: Bruno Luong Date: 23 May, 2012 06:52:09 Message: 7 of 8 
"stefaneli" wrote in message <jph2ii$l94$1@newscl01ah.mathworks.com>... 
Subject: Max distance from point on ellipsoid to surface From: Bruno Luong Date: 23 May, 2012 06:59:07 Message: 8 of 8 
BTW here is a code of projection a point to an ellipsoid (conic) using Lagrange multiplier. 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.