How to create a counter in simulink
问题 I would like to count how many times my signal goes to zero. For example having an impulse signal as input I want a variable which counts how many times the impulse goes to zero. I´m becoming crazy thinking of something....can anybody help me? Thanks 回答1: figure 1 is a pulse counter model and figure 2 is scope output which shows for 5 input pulses we get counter output as 5 回答2: There is a similar question here that might help. There are loads of ways to implement a counter, but a good way I