To calculate the peak-to-peak amplitude of an M-wave and H-reflex of an EMG signal in Matlab, you can use the following code:
main.m679 chars19 lines
In this example, the EMG signal is loaded from a file named 'emg_signal.mat'. The M-wave and H-reflex intervals are specified as indices into the signal array. The peak2peak
function is used to calculate the peak-to-peak amplitude of the signals. The results are displayed in the console.
gistlibby LogSnag