how can i get EMG envelope using helbert transform
Show older comments
hi everyone im trying to detect envelope of EMG signal using helbert transform this what i use x = hilbert(y) env = abs(x) plot(env)
the problem that i didnt get the envelope can anyone help me please thanks
2 Comments
Star Strider
on 21 Jan 2018
You have only included the ‘y’ value in your .mat file, not the corresponding time vector, or the sampling frequency.
What is the sampling frequency for your data?
ayachi monaam
on 21 Jan 2018
Answers (1)
Star Strider
on 21 Jan 2018
D = load('matlab.mat');
s = D.y;
Fs = 500; % Hz
t = linspace(0, 1, length(s))/Fs; % Time Vector
[yup,ylo] = envelope(s, 25, 'peak');
figure(1)
plot(t, s)
hold on
plot(t, yup, '-r', 'LineWidth',1.5)
plot(t, ylo, '-r', 'LineWidth',1.5)
hold off
grid
Experiment to get the result you want.
Categories
Find more on Hilbert and Walsh-Hadamard Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!