non-intersecting region for two curves

조회 수: 2 (최근 30일)
syed khaleduzzaman
syed khaleduzzaman 2022년 11월 28일
답변: Akshat Dalal 2023년 8월 29일
How I can define the logic to find the non-intersecting region as showed in the attached picture with two parallel lines?

답변 (1개)

Akshat Dalal
Akshat Dalal 2023년 8월 29일
Hello Syed,
I understand that you have plotted two curves on the same graph and want to find non-intersecting regions between them.
I am assuming that by non-intersecting regions, you mean regions where multiple points belonging to only one curve are present.
To identify non-intersecting regions between two curves, you can follow these steps:
  1. Sort the points from both curves in increasing order of frequency.
  2. Initialize separate indexes for each curve, starting from the lowest frequency point.
  3. Iterate through the points, finding the next highest frequency point from both curves, and incrementing the respective index.
  4. For a particular point, you could check for non-intersecting regions by checking if the next highest frequency point after this point belongs to the same curve.

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by