how to find centroid between to end and junction point
1 view (last 30 days)
Show older comments
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162157/image.jpeg)
>> this is my image i already find out the end points and branch points but i want to plot a point in between these two point because i will help me to add edges between to points. please give me some code to find the mid points or centroid between two points
2 Comments
Joshua
on 27 Mar 2017
I believe you are just looking for the midpoint formula which is fairly straightforward to code, but there is not enough information provided in the question to code it. Read this link and give it a shot. http://www.purplemath.com/modules/midpoint.htm
Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!