Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I really like this idea. When a line is drawn through the points it definitely gives the illusion they intersect on every rising and falling edge. However, since they are discrete points and very close together I dont see how to add in a threshold to get exactly one crossing point through that reference line. Any thoughts? @CedronDawg
@Mbaz it seems that when I autocorrelate the signal my guess is that it might be counting the period as a positive edge going to negative edge, as opposed to positive edge going to the next positive edge. However, since I am almost sure duty cycle will always be 50% I can just divide by 2. However, MATLAB records the distance between peaks in the acorrelated signal as a vector and for some reason the first and last elements are smaller than the middle ones, so I just end up clipping those edges out