To identify and calculate the peak to peak amplitude of both an m-wave and h-reflex in a 600 data point by 21 trial matrix emg signal by finding the peaks over two time periods in MATLAB, we can follow these steps:
findpeaks
function in MATLAB to detect the peaks in each time period.Here's some example MATLAB code that implements these steps:
main.m1062 chars27 lines
This code assumes that the EMG data is stored in a matrix called emg_data
with size 600 x 21, where each column represents a single trial. It also assumes that the sampling rate of the EMG data is 1000 Hz.
Note that the bandpass filter parameters (20-200 Hz) are just an example and may need to be adjusted depending on the specific EMG signal being analyzed. You may also need to experiment with other peak detection algorithms or parameters depending on the characteristics of your data.
gistlibby LogSnag