- Sort the points from both curves in increasing order of frequency.
- Initialize separate indexes for each curve, starting from the lowest frequency point.
- Iterate through the points, finding the next highest frequency point from both curves, and incrementing the respective index.
- 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.
non-intersecting region for two curves
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1210248/image.png)
How I can define the logic to find the non-intersecting region as showed in the attached picture with two parallel lines?
0 件のコメント
回答 (1 件)
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:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!