Zero Crossing Rate

Calculates the Zero Crossing Rate for a array of values, work for vector and matrix
2.3K Downloads
Updated 3 Jun 2011

View License

Zero Crossing Rate
Works for vector and matrix
Vectorized function,very fast

if x is a Vector returns the zero crossing rate of the vector
Ex: x = [1 2 -3 4 5 -6 -2 -6 2];
y = ZCR(x) -> y = 0.444

if x is a matrix returns a row vector with the zero crossing rate of
the columns values

By: Jose Ricardo Zapata
Universidad Pontificia Bolivariana
2010

Cite As

Jose R Zapata (2026). Zero Crossing Rate (https://se.mathworks.com/matlabcentral/fileexchange/31663-zero-crossing-rate), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0