how to normalize EKG/ ECG signal

65 views (last 30 days)
JULIAN GOMEZ RODRIGUEZ
JULIAN GOMEZ RODRIGUEZ on 13 Apr 2021
Commented: Abdul Manan Dar on 14 Aug 2021
Hello all,
I have a EKG/ ECG signal from Physionet and I'm trying to normalize the amplitude of the signal between 0 and 1. This means that the peaks of the QRS signal are going to be near the value 1, while most of the values are going to be near the baseline. I'm trying to use Pan Tompkins algorithm, and it does convert the values from 0 - 1, but only the values of the peaks, and I wanted to do it for the complete signal.
I have also tried to use "mat2gray" function, but it doens't work properly, since it's thought to be used with images and not EKG/ ECG signals.
Is there any prebuilt function in Matlab that does what I need?
Thanks in advance, Julián.

Answers (1)

Star Strider
Star Strider on 13 Apr 2021
See if the rescale function (introduced in R2017b) will do what you want.
  1 Comment
Abdul Manan Dar
Abdul Manan Dar on 14 Aug 2021
try to use
for Normalising use:
x_norm = (x -min(x)) / max(x-min(x));
However, for normalisation Data should be normally distributed. For more general cases use standardisation:
x_standard = (x -mean(x))/std(x);
it will give you the z-score values between +/-3.

Sign in to comment.

Categories

Find more on Measurements and Feature Extraction in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!