Hi,
Using stateflow, you can implement this with after function whereas using simulink counter logic has to be implemented.
Please find the attachements.
Thanks
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!