zero crossing detection iwth a matlab function

I have a question about zero crossing detection.
I'm modeling something in simulink that I need the exact time when a Boolean changes value. I'm running my block at continuous time but I was hopping by adding the crossing block I can assure that my block takes a step time and records the exact time of the change in Boolean. However, this doesn't seem to work. 1. Where should I have the crossing detection block? can it be after my function? 2. does it even work on a matlab function? if so, any ideas why it's not working?!
Thanks

Respuestas (0)

Productos

Preguntada:

el 10 de Abr. de 2014

Comentada:

dpb
el 10 de Abr. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by