hi
there is a lot of activity on this forum dealing with ECG signals analysis
have looked if your question was not already answered ?
maybe this one could help you :
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!