How can I create a fine contour from set of points?
Show older comments
Hi,
I am creating different contours using (x,y) coordinate of points.
Say if i want to create a triangle I would use
x1=(0,0)
x2=(8,-4)
x3=(8,4)
x4=(0,0)
giving me this contour:

But, i need more points on this contour, especially near the edges:

which for various contours i calculate manually.
Now I want to automate this, and add those points near the edges with a given length.
Should I write a for loop, calculate the distance between neighboring points, divide by given length, and use to get the additional points and repeat?
Or is there a better way?
Accepted Answer
More Answers (1)
ttopal
on 28 Sep 2018
Categories
Find more on Contour 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!