how can i get EMG envelope using helbert transform

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

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?
hi the sampling frequency is 500 hz i dont know how to use it with helbert transform to get the envelope thanks

Sign in to comment.

Answers (1)

If you have R2015b or later, use the envelope (link) function instead. It is much easier to use:
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.

Asked:

on 21 Jan 2018

Answered:

on 21 Jan 2018

Community Treasure Hunt

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

Start Hunting!