Using max value to normalize data

Conducting analysis on EMG data of bicep with varying contraction levels. Instruction is to "normalize the low-filtered data by max EMG value when muscle is active in 100% MVC trial". Already created time vector, removed offset by detrend, filtered by 3rd order bandpass and rectified data, then lowpass filter by 3rd order to smooth data. Everything done on the 100% contraction data. How to complete instruction?

Answers (1)

Use rescale to rescale a matrix from min to max to whatever range you want:
signal = rescale(signal, 0, 1);

Categories

Products

Release

R2023b

Asked:

on 4 Dec 2023

Answered:

on 4 Dec 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!