why NAN happend when i use another signal
Show older comments
i am trying to detect S-wave in QRS complex and it works enough for me but i tryed for another ECG signal it dose not give me error buy the output of all procedure start from filtering to the end is NAn what is the wrong??

1 Comment
Image Analyst
on 3 May 2014
How can we know why your code gives NaN when you didn't attach your code or your data file. Please read this: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Accepted Answer
More Answers (2)
Hasan alomari
on 3 May 2014
0 votes
Jan
on 3 May 2014
0 votes
You can use the debugger to step through your code line by line to find out, in which operation the NaNs are produced. If you have specified the corresponding command and still have questions, you can post them again providing more information.
2 Comments
Hasan alomari
on 3 May 2014
Image Analyst
on 3 May 2014
Then please view this tutorial on the debugger: http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/
Categories
Find more on Smoothing and Denoising in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!