Zero crossing detection in Simulink

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

 Akzeptierte Antwort

Greg Heath
Greg Heath am 18 Mär. 2014

0 Stimmen

if(a(i)*a(i+1)<0)
Hope this helps.
Greg

Weitere Antworten (1)

Kategorien

Mehr zu General Applications finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by