Assignment:
The op-amp circuit measures the changes of temperature in a system. The output voltage is given by v0(t) = -R(t)vi(t). Suppose that the temperature in the system changes cyclically after t = 0, so that R(t) = [1 +0.5 cos(20πt)] u(t) and let the input voltage be vi(t) = 1 volt.
Assuming that the switch closes at t0 = 0 sec, use MATLAB to plot the output voltage v0(t) for 0 ≤t ≤0.2 sec in time intervals of 0.01 sec.