someone know how can i creat a zero crossing function for my code?

Hello everybody I am doing a project in ecg signal processing and I got in to a small problem I created a file which is doing a math manipulation over the ecg signal. In the middle of the code I wanted to find the exact place of the zero crossing of a signal called "pne" I have created, and I have no idea how to do it. Someone can help??

Answers (1)

Do you want fZero?

1 Comment

i am not sure. I think that might be the solution but I get the next eror: "FUN must be a function, a valid string expression, or an inline function object." I guess I can't input a vectoras FUN which contains the zero crossing points I search for. This function might find the zero crossing points when you enter "sin" or some other known functions. I need to find them in a specific vector. Any suggestion?

This question is closed.

Asked:

on 19 Sep 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!