Signal processing, I want to remove a specific segment from signal
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dexter
am 13 Nov. 2020
Kommentiert: Anusshree
am 18 Dez. 2023
Hi guys,
I want to remove a specific segment of a signal and replace it with zeros or previous values of signal. I consider this segment as artifact and I want to remove it. The signal is shown in the picture below and the segment I want to remove is the segment between cursors. The position of these unwanted samples in the vector of signal that must be removed and replace with zeros or previous values are 79800 to 80600. The signal continues till 123000 samples.
Can anyone help me? I tried with other solution I find in the forum but when I plot the signal in the time domain the signal get messy..

0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 13 Nov. 2020
If the position is fixed, then you can use indexing to set them to zeros
sig; % 123000x1 signal
sig(79800:80600) = 0;
7 Kommentare
Image Analyst
am 17 Dez. 2023
@Anusshree set those indexes to null:
signal(index1 : index2) = [];
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multirate Signal Processing 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!