Matlab Extracting X and Y coordinates

1 view (last 30 days)
AAZ on 14 Aug 2022
Answered: Bruno Luong on 14 Aug 2022
I have 2 y line, how can I extract the value of X when the y line pass through the signal that I have.

Answers (2)

KALYAN ACHARJYA on 14 Aug 2022
Concept wise:
This may not work, if there may floating numbers, in that case you may follow the following approximate
diff_data=data1-data2; %cross points might be zero or near by zero
indices_cross=find(diff_data>-th I diff_data<th);
Here th is minimal threshold value, which ensures all cross points having not exactly zero or nearby zero.
Other standard function also there, see the zero crossing functionsm you may get the idea.

Bruno Luong
Bruno Luong on 14 Aug 2022
See here


Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by