MATLAB: How to generate a pwm signal with duty cycle 30%

pwm with simulink without using source blockssimulink

How to generate a pwm signal with duty cycle 30% without using any of the source blocks.
Want to use the simulink library but not the blocks present in the sources

Best Answer

Use a resetable integrator to generate a sawtooth wave, compare it with a constant value, you'll get a PWM wave. The value of the constant determines the duty cycle.
Related Question