Assuming you have your data in a matrix data
, which has dimensions of 600 (points) x 21 (trials), you can calculate the peak-to-peak amplitude across each trial as follows:
main.m264 chars8 lines
This will give you a 1 x 21 vector of peak-to-peak amplitudes across all trials.
gistlibby LogSnag