# Connecting the threshold points of a curve using straight lines

2 views (last 30 days)

Show older comments

##### 2 Comments

Rik
on 2 May 2017

Are the straight lines known, or should they be generate from the curve?

If the first is the case, it is just a matter of finding the intersection coordinates of two straight lines, which should take you 5 minutes to Google.

If the latter is the case, I think I would try an iterative approach: use polyfit for more and more points, until a threshold is reached for a GOF-parameter, then start selecting points for the next line segment.

### Answers (1)

Image Analyst
on 2 May 2017

##### 3 Comments

Image Analyst
on 2 May 2017

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!