Analysing PWM duty cycle of a signal
6 views (last 30 days)
Show older comments
Sherzaad Dinah on 20 Mar 2023
Edited: Sherzaad Dinah on 24 Mar 2023
I have recorded a PWM signal from a given device.
I require to determine the duty cycle(s) of the signal as the transitions from one state to another.
How may I output the duty cycle of the PWM thoughout the signal?
I am using Matlab 2016b
David Hill on 20 Mar 2023
s=pwm>threshold;%pwm is your signal, threshold is when it is considered on or off
Find more on Pulse and Transition Metrics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!