How to generate an EMG signal
26 views (last 30 days)
Show older comments
How can I generate a raw EMG on MATLAB so I can perform amplification, filtering, FFT etc. on it? I did find libraries, but they open on a separate window. I cannot find a way that I can test my code on the generated EMG signal.
Any help would be highly appreciated.
0 Comments
Accepted Answer
Star Strider
on 16 Oct 2015
The Physionet EMG signals can be downloaded as .mat, .txt, or other format files that you can read into your workspace. You just have to search Physionet for the appropriate file options.
I just downloaded the attached file. To load and plot it, save it to a directory on your MATLAB path, then run this:
emg = load('emg_healthy.txt');
figure(1)
plot(emg(:,1), emg(:,2))
grid
3 Comments
More Answers (1)
See Also
Categories
Find more on Biomedical Signal Processing 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!