View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.6 | 8 ratings Rate this file 6 Downloads (last 30 days) File Size: 17.7 KB File ID: #6243 Version: 1.0
image thumbnail



Peter Wasmeier (view profile)


11 Nov 2004 (Updated )

Fit polygon hull to a data set better than convhull would do.

| Watch this File

File Information

When interpolating on a given data set, convhull is used to set the boundaries of the interpolation area. Because convhull only minimizes the outline length, there might be interpolation lines which are unwanted (see figure).

hullfit tries to minimze the polygon area instead resulting in a hull line fitting sharper to the given data.

MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
05 Jul 2012 Nacho

Nacho (view profile)

16 May 2010 Christine A.

31 Aug 2007 Jon Barron

Hey, great script. I found a small bug though, which I was able to fix by changing the two "find" calls from "find(X)" to "find(X, 1, 'first')". Otherwise errors get thrown or results are poor for certain images.

21 Aug 2007 Joachim Schnellb├Ącher


08 Oct 2006 David M├╝ller

20 Sep 2006 J M


19 Apr 2006 Flo Pap

Perfect - much better than convhull.

13 Mar 2005 chris roman

good, seems to work as advertised.

Contact us