Parallel close curve with no equation

1 view (last 30 days)
Hello, good morning, everyone.
Would anyone know, known the points of the red curve get the rest of the graphs (the points with which the rest of the graphs can be constructed) known the distance I want them to be?
In this graph that I pass, with font Wikipedia, the red curve corresponds to an easily calculable equation but in my case not. The only thing that is true is that it is a quite complex closed surface and of which I know only the points
I leave you the dot matrixes and the centroid which I also know in case it's of interest.
load centroids.mat
load points.mat
figure
plot(points(:,1), points(:,2), 'k', 'LineWidth', 2)
hold on
plot(centroids(1), centroids(2), 'r+', 'MarkerSize', 10, 'LineWidth', 2);

Accepted Answer

Alejandro Fernández
Alejandro Fernández on 8 Feb 2020
I have found a “solution” you can approximate it into a polygon with polyshape and then offset it.

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!