How to create boundary for cloud of points where data is "convex"?

3 views (last 30 days)
I have a dataset of 5600 points that I would like to create a boundary to the entire cloud when I scatter (x,y). If done with the boundary(x,y,1) function what I get a lasso that is does not pick enough points, especially where my data becomes a little convex. I'm open to other methods because what I really want is a curve that picks my MAX values as it moves in x, kind of a blanket over my data. This becomes difficult when the gradient between points becomes large.
Additionally, the dataset of course isn't nicely ordered, it's very random.

Answers (1)

Image Analyst
Image Analyst on 27 Apr 2017
Does convhull() do what you want?
  1 Comment
Image Analyst
Image Analyst on 28 Apr 2017
Edited: Image Analyst on 28 Apr 2017
Related functions are activecontour (demo attached), and envelope().
And what does "gradient between points" mean to you?

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!