Plot the magnitude and phase components of the ECG signal found as…