Info

This question is closed. Reopen it to edit or answer.

I have a code which calculates the shortest distance between 2 line segments given all the endpoints of segments. How to create a function and use the same code to find the shortest distance between N random linesegments (Suppose I have 4 segments, I

1 view (last 30 days)
I have a code which calculates the shortest distance between 2 line segments given all the endpoints of segments. How to create a function and use the same code to find the shortest distance between N random linesegments (Suppose I have 4 segments, I want to find the shortest distance between 1st and 2nd , 1st and 3rd, thn followed by 2nd and 3rd , 2nd and 4th) . How to do this ?

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!