Assignment 1 : complete examples 1, 2 and 3 in the notes (chapter 1) using SPICE.
Hint to the question: (similar part in Examples 1, 2, & 3)
Obtain vo waveform and use Fourier analysis, to obtain its harmonic components as a ratio of its average value Vo.
Take the first three harmonic components starting at the switching frequency (100kHz) and obtain their peak magnitudes. You might like to use the log scale as it shows up small magnitudes better. Then compare the magnitudes with the average output voltage which is the DC value. You may get the average output voltage from the time plot or you may get the value from the Fourier plot at very low frequency, say 1 Hz.
please see attachment for details