Thread Subject: Finding a minimum of a 3d surface

Subject: Finding a minimum of a 3d surface

From: Carp Fisher

Date: 11 Mar, 2009 22:11:35

Message: 1 of 2

I have a surface that is defined by a megrid of x, y, and z values and created by the 'surf' command.

I want to find the minimum z value of the surface and then the corresponding x and y values. I've tried using the 'min' function but no luck so far. Any general tips? Thanks,

Kim

Subject: Finding a minimum of a 3d surface

From: John D'Errico

Date: 11 Mar, 2009 23:03:02

Message: 2 of 2

Carp Fisher <bmjim@gmail.com> wrote in message <14615566.1236809526065.JavaMail.jakarta@nitrogen.mathforum.org>...
> I have a surface that is defined by a megrid of x, y, and z values and created by the 'surf' command.
>
> I want to find the minimum z value of the surface and then the corresponding x and y values. I've tried using the 'min' function but no luck so far. Any general tips? Thanks,
>

The minimum element can be gained from my
min2 function, although this is not a difficult
thing to do in any event.

http://www.mathworks.com/matlabcentral/fileexchange/22995

If what you really want is to find an interpolated
minimum, then you need to use an interpolation
method. interp2 will interpolate it, but you need
to use a smooth interpolant. Use the spline method.

John

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

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.

rssFeed for this Thread

Contact us at files@mathworks.com