First, set the variables associated with the voltage source
Next, set the variables associated with the circuit elements
Now calculate the impedances as given in
Calculate the output phasor voltage using:
then extract an amplitude (B) and an angle (phi). Note that the angles
MATLAB uses are in radians
Set up the time variable for the plot. The book suggests plotting for two
periods of the input voltage using 100 points. As in the OpAmp Circuits
code, the linspace command can be used to accomplish this task.