How to cut the signal

13 visualizaciones (últimos 30 días)
djoerig Hartono
djoerig Hartono el 30 de Nov. de 2017
Movida: Image Analyst el 7 de Jul. de 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.
  1 comentario
Supratim
Supratim el 29 de Jun. de 2025

You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 30 de Nov. de 2017
Editada: Image Analyst el 29 de Jun. de 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 comentarios
Lokesh Chowdary Patibandla
Lokesh Chowdary Patibandla el 28 de Mayo de 2018
What is the 1 value in the index 1 & 2.
Image Analyst
Image Analyst el 28 de Mayo de 2018
Editada: Image Analyst el 29 de Jun. de 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.

Iniciar sesión para comentar.

Más respuestas (5)

Supratim
Supratim el 29 de Jun. de 2025
Movida: Image Analyst el 30 de Jun. de 2025

You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal


Supratim
Supratim el 29 de Jun. de 2025
Movida: Image Analyst el 30 de Jun. de 2025

You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal


Supratim
Supratim el 29 de Jun. de 2025
Movida: Image Analyst el 7 de Jul. de 2025

You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal


Supratim
Supratim el 29 de Jun. de 2025
Movida: Image Analyst el 1 de Jul. de 2025

You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal


Supratim
Supratim el 29 de Jun. de 2025
Movida: Image Analyst el 2 de Jul. de 2025

You can go to the Panner under display tab in signal analyzer app, and then you can crop out your signal

Categorías

Más información sobre Time-Frequency Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by