Matlab Extracting X and Y coordinates

조회 수: 1 (최근 30일)
AAZ
AAZ 2022년 8월 14일
답변: Bruno Luong 2022년 8월 14일
I have 2 y line, how can I extract the value of X when the y line pass through the signal that I have.

답변 (2개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 8월 14일
Concept wise:
cross_index=find(data1==data2);
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 2022년 8월 14일
See here

카테고리

Help CenterFile Exchange에서 Signal Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by