Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Zero cross detection
Replies: 3   Last Post: Apr 9, 2014 9:21 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 5/1/13
Re: Zero cross detection
Posted: May 1, 2013 6:44 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

[0; diff(sign(x))]>1 % this detects if your signal just went above 0
[0; diff(sign(x))]<-1 % this detects if your signal just went below 0

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.