You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal
How to cut the signal
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
djoerig Hartono
am 30 Nov. 2017
Verschoben: Image Analyst
am 7 Jul. 2025

Dear All, I have waveform data in csv file in 'X' and 'Y' axis, the plot is on the figure attached. I want to remove the unneeded signal marked by arrows sign in order to get complete waveform signal. Is there any advice/better algorithm to remove the signal automatically ? My idea is to track the data in a loop then find the '0' value in the 'Y' axis and delete the rows before. Best regards.
Akzeptierte Antwort
Image Analyst
am 30 Nov. 2017
Bearbeitet: Image Analyst
am 29 Jun. 2025
How about if you simply find the first and last time that y is negative?
index1 = find(y < 0, 1, 'first'); % Find left index
index2 = find(y < 0, 1, 'last'); % Find right index.
% Now crop signal
yCropped = y(index1:index2);
3 Kommentare
Image Analyst
am 28 Mai 2018
Bearbeitet: Image Analyst
am 29 Jun. 2025
I don't know what that means. Please reword the question.
1 is just a number I put in the variable name index1 to distinguish it from a different variable called index2. You could use other names if you want.
The 1 that is the second argument to the find function means to return 1 value where y is negative, not multiple indexes where it's negative.
Weitere Antworten (5)
Supratim
am 29 Jun. 2025
Verschoben: Image Analyst
am 30 Jun. 2025
You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal
0 Kommentare
Supratim
am 29 Jun. 2025
Verschoben: Image Analyst
am 30 Jun. 2025
You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal
0 Kommentare
Supratim
am 29 Jun. 2025
Verschoben: Image Analyst
am 7 Jul. 2025
You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal
0 Kommentare
Supratim
am 29 Jun. 2025
Verschoben: Image Analyst
am 1 Jul. 2025
You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal
0 Kommentare
Supratim
am 29 Jun. 2025
Verschoben: Image Analyst
am 2 Jul. 2025
You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal
0 Kommentare
Siehe auch
Kategorien
Mehr zu Time-Frequency Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!