Zero crossing detection in Simulink

8 views (last 30 days)
Hi all. I would like to ask how in Simulink can be detected zero crossing signal. After each pass, I would like to actuate another signal transistor (1 then 2, then 3, etc.) Everything has to work in a loop. (1,2,3 1,2,3 1,2,3 etc)
Thank you for all the ideas Regards Pablo

Accepted Answer

Greg Heath
Greg Heath on 18 Mar 2014
if(a(i)*a(i+1)<0)
Hope this helps.
Greg

More Answers (1)

Kaustubha Govind
Kaustubha Govind on 20 Mar 2014
See the Hit Crossing block.

Categories

Find more on General Applications in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!