Skip to main content
user P520's user avatar
user P520's user avatar
user P520's user avatar
user P520
  • Member for 6 years, 1 month
  • Last seen more than 4 years ago
awarded
comment
Finding period of a square wave with varying sampling frequency
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
comment
Finding period of a square wave with varying sampling frequency
@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
awarded
Loading…