- Double-click on the "Controlled PWM Voltage" block to open its parameters.
- In the block parameters window, find the "Simulation mode" setting.
- Change the "Simulation mode" from "Averaged" to "PWM".
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1737566/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!