https://connectkreations.com/pulse-width-modulationpwm-working-principal-using-matlab/
Pulse Width Modulation(PWM) working Principal using Matlab