how to measure duty cycle of a given wave form

I have got a PWM Signal in Simulink and i want to calculate the duty cycle of it. The data are like 10010011111000011100000111110001111 Is there any Model in Simulink that can help me to do this ? Or should I use the m-code? How ?
Thanks a lot for your help

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 30 Jul 2017

Community Treasure Hunt

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

Start Hunting!