Consider the voltage divider shown in Figure 1. Let V_in = 9 V and R = 1kΩ. Write a MATLAB script to find the output voltage as a function of the variable resistance R2. Plot V_out vs. R for 0 ≤ R ≤ 10kΩ in steps of R = 10Ω. Include a grid and label axes properly.
R1
V_in
.
R2
V_out
Figure 1. Voltage divider with variable resistor
Write a brief report that includes a cover page, this handout, a description of the thought process you followed to solve the problem (one page), the MATLAB script properly documented, the resulting plot, and your conclusions.