how to plot magnitude vs frequency of ECG signal taken from database in MATLAB?
Try using fvtool or freqz for frequency domain analysis. You need z-transforms of your equations, but I found fvtool particularly useful in analyzing the signals as it shows multiple plots (magnitude, phase, group delay, zero-pole diagrams etc.)