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 个评论
Star Strider
2018-1-21
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
2018-1-21
回答(1 个)
Star Strider
2018-1-21
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Hilbert and Walsh-Hadamard Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!