https://se.mathworks.com/help/signal/ref/pulseperiod.html
pulseperiod - Period of bilevel pulse - MATLAB
This MATLAB function returns the difference between the mid-reference level instants of the initial transition of each positive-polarity pulse and the next...
periodbilevelpulsematlab