Parallel close curve with no equation

2 次查看(过去 30 天)
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);

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by