How to extract informative part from a signal ?

조회 수: 3 (최근 30일)
Alberto Azzari
Alberto Azzari 2021년 12월 29일
댓글: Alberto Azzari 2021년 12월 30일
Hi, I'm working on a dataset of EMG signals that comes from different muscles: biceps, quadriceps and so on... (globally 6 different classes). This signals are stored as vector of dim 1, n. I was wondering if there is the possibility to extract the central part of these signals automatically, I have already tried to compute the power in slot of 100 values and if a slot is greater than the threshold I keep it (but it's not working always, and not generalizable). I put an image in order to better understand which is my problem. Thank you

채택된 답변

yanqi liu
yanqi liu 2021년 12월 30일
yes,sir,may be use data filter to smooth data vector,and check the diff to segment data,get the split index range to segment
my be upload your data mat file to do some analysis
  댓글 수: 3
yanqi liu
yanqi liu 2021년 12월 30일
clc; clear all; close all;
load test
x = ds(1,:);
x2 = x;
for i = 1 : 10
x2 = smooth(x2,100);
end
[pks1,locs1,w1,p1] = findpeaks(x2,'MinPeakProminence',5e-3);
[pks2,locs2,w2,p2] = findpeaks(-x2,'MinPeakProminence',5e-3);
locs = [locs1; locs2];
figure; plot(x);
hold on;
plot([min(locs) min(locs)], [min(x) max(x)], 'r--');
plot([max(locs) max(locs)], [min(x) max(x)], 'r--');
Alberto Azzari
Alberto Azzari 2021년 12월 30일
Thank you, it works

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 AI for Signals and Images에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by