Separating multiple artefacts in a signal

1 visualización (últimos 30 días)
Eleen Schupp
Eleen Schupp el 28 de En. de 2019
Comentada: Walter Roberson el 28 de En. de 2019
We have a matrix with ones and zeros, the ones represent an artefact. We are now able to detect the starting time and end time of an artefact, however when there are multiple artefacts: we only get the starttime of the first artefact and the endtime of the last artefact.
starttime= t(find(artLoc,1,'first'));
endtime= t(find(artLoc,1,'last'));
In our matrix (artLoc) the multiple artefacts are detected correctly.
We would like to add some criteria to the code, such as: only if there are >3 ones it can be called an artefact. And there have to be at least 5 zeros between ones to start an new artefact.
Thanks in advance for the help!!
  1 comentario
Walter Roberson
Walter Roberson el 28 de En. de 2019
oddly identical to https://www.mathworks.com/matlabcentral/answers/441610-separating-multiple-artefacts-in-a-signal

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by