Zero crossing with hysteresis
Usage:
 D = ZCwHyst(vec_in, hist_l, hist_h, figh)
 Inputs:
       vec_in - vector or a matrix of data. if vec_in is a matrix,  the function
       takes each column as an entry.
       hist_l - lower hysteresis bound. should be 0 or below.
       hist_h - upper hysteresis bound. should be 0 or above.
       figh (optional) - figure handle for plot. To disable the plot, use
       only 3 inputs or assign figh as []. To draw in a specific figure
       window, assign the window number to figh. For a new figure window,
       assign -1 to figh.
   Output:
       ZC = vector of the zero crossings. 
       
   In order to draw stairs graph of the crossings, use the following code:
   ZC(ZC==0) = -1;
   stairs(ZC)
Zitieren als
Noam Greenboim (2025). Zero crossing with hysteresis (https://de.mathworks.com/matlabcentral/fileexchange/47150-zero-crossing-with-hysteresis), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Signal Processing > DSP System Toolbox > Signal Generation, Manipulation, and Analysis > Signal Operations >
 
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 | 
