Junzhe-Chen / PWM-modulator-demo

A PWM modulator demo written in MATLAB that uses the figure to demostrate the process of PWM (Class D) modulation of a sine wave.
MIT License
0 stars 0 forks source link
matlab

PWM-modulator-demo

A PWM modulator demo written in MATLAB uses the figure to demonstrate the PWM (Class D) modulation process of a sine wave.

I uploaded the MATLAB script file (.m) as well as the MATLAB live script file (.mlx), which you can open by clicking the button below:

Open in MATLAB Online

In the program, there are five plots, namely:

Ver. 1.2 Update: I redesign that program in live editor, it looks like this:

Live editor UI

Now the following parameters can be changed by tweaking sliders:

Have fun playing around!