File Exchange Pick of the Week

Our best user submissions

Zero crossings on arbitrary signals

I have been working a lot with the technical support team here at the MathWorks. When the front line tech support people are stumped by technical questions, I try to give them a hand. Sometimes they need help because people want to do something in MATLAB that we at The MathWorks did not already put in the product. Inevitably, someone on MATLAB Central has already posted a file that does exactly what is needed.

Here is a case where the customer had some arbitrary signal data and wanted to know where it crosses zero. If this had been a continuous function of one variable, then I would have suggested fzero but with more arbitrary data, crossing.m by Steffen is exactly what we needed.

crossing4.jpg

|

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.