The following Matlab project contains the source code and Matlab examples used for fourier analysis of a sinusoidal pwm signal. This model simulates and computes Fourier analysis of PWM based sinusoidal waveform. Fundamental frequency can be changed in model properties. Amplitude modulation index and frequency modulation index can be adjusted in Simulink model directly.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.