MATLAB Answers

Parallel close curve with no equation

조회 수: 6(최근 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
Alejandro Fernández 2020년 2월 8일
I have found a “solution” you can approximate it into a polygon with polyshape and then offset it.

추가 답변(0개)

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by