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

Answers (0)

Products

Asked:

on 10 Apr 2014

Commented:

dpb
on 10 Apr 2014

Community Treasure Hunt

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

Start Hunting!