MATLAB scripts for processing elbow flexion lab data: filtering EMG, normalizing against a 25 lb isometric trial, and plotting muscle activation across load, angle, and movement phases.
newq1.m– Normalizes EMG for multiple weights, regresses vs elbow moment, and reports R².newq3.m– Segments dynamic curls by goniometer trend to compare normalized EMG during raising vs lowering.stuff.m– Time-limits dynamic trials (6.28–9.158 s), normalizes, and ensemble-averages EMG traces.untitled4.m– Batch peak/RMS extraction for all trials plus average EMG vs dumbbell moment.untitled5.m– Aggregates EMG across elbow angles (180–90°) and plots average activation.untitled6.m– Finds rep tops/bottoms from goniometer peaks and compares EMG at each position.untitled7.m– Static example bar chart using preset EMG values.Document.docx– Lab write-up (not scripted).
- CSVs from
Lab3FridaySectionData, sampled at 2000 Hz; EMG in columns 4–5, goniometer in column 3, data starting at row 6. - Update
dataDirectorypaths in each script to your local dataset.
Open a script in MATLAB, confirm the dataDirectory, then run. Signal Processing Toolbox functions (butter, filtfilt) are required for filtering.