Get envelope of a cyclic curve

12 views (last 30 days)
Dear All, I need to get an envelope of a cyclic curve as shown shown in the attach picture and excel file.
Thank you.
  4 Comments
William Rose
William Rose on 12 Jan 2023
@Nikesh Maharjan, you're welcome. Good luck with your work.

Sign in to comment.

Accepted Answer

William Rose
William Rose on 11 Dec 2022
Use convhull() to find the smallest convex shape that wraps around the points.
See code below.
data=xlsread('envelope.xlsx');
points=data(:,4:5);
k=convhull(points);
plot(points(:,1),points(:,2),'b.',points(k,1),points(k,2),'-r*')
Good luck.

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by