Search tips

Search tips

# Discussion Groups | Matlab DSP | Zero-Crossing..

Technical discussion about Matlab and issues related to Digital Signal Processing.

Is this thread worth a thumbs up?

0

# Zero-Crossing.. - s7jid - Jan 4 14:10:00 2004

 All, Can anyone tell me how to find number of zero crossing (i.e. number of time signal changes sign) in matlab? Regards

# Re: Zero-Crossing.. - Mandar Rahurkar - Jan 5 21:17:00 2004

 use the sign command and find the number of transitions. Mandar --- s7jid <> wrote: > All, > > Can anyone tell me how to find number of zero crossing (i.e. number > > of time signal changes sign) in matlab? > > Regards ===== ------------------------------------- Its not life that weighs us down, Its how we carry it. ------------------------------------ __________________________________

# RE: Zero-Crossing.. - balaji srinivasan - Jan 6 1:42:00 2004

 Try this.             count = 0; thresh = 0;             for(i=0:signal_length){                         if(sig[i+1]>thresh && sig[i]<=thresh) count++;                         else if(sig[i+1]=thresh)count++;                         end;                         end;             }             count/=2; #8216;Count#8217; will have the numberof #8216;zero crossings#8217;. Bye Balaji Srinivasan -----Original Message----- From: s7jid[mailto:] Sent: Sunday, January 04, 20047:40 PM To: Subject: [matlab] Zero-Crossing.. All, Can anyone tell me how to find number of zerocrossing (i.e. number of time signal changes sign) in matlab? Regards _____________________________________ /groups.php3 Yahoo! Groups Sponsor ADVERTISEMENT --------------------------------- Yahoo!Groups Links · To ---------------------------------