Create Zero_crossing_counter.m

% function to count the number of zerocrossings in a sequence