ECG signal extraction using Matlab