find intersection between horizontal line and a set of (x,y) data and find the length of intersected line segments above the given (x,y) data

15 次查看(过去 30 天)
I have a river cross section data as a set of (x,y) points.
I have to find the width of the water surface for given water level elevation.
For example, the river cross section data joined with straight lines (red line) is as shown in the attached image and blue line is the given water surface elevation.
The water surface elevation intersects the cross section at four points here (it could be any number ranging from 2 to n)
What i need to do is to find the lengths of the intersected line segments representing water surface which are above the cross section.
Need some quick ideas.

采纳的回答

Ameer Hamza
Ameer Hamza 2020-9-30
  6 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by