Question: Prefrence: Matlab 2017 or 2016 Use MATLAB to solve the following three problems submit both your codes and results. Problem 1 (40 points): In the
Prefrence: Matlab 2017 or 2016


Use MATLAB to solve the following three problems submit both your codes and results. Problem 1 (40 points): In the circuit shown on the right, R-3 R2 and Ri where = 100 rad/sec, write a MATLAB program to perform the following: a) Create an array for Vin for 0.5 sec using 1000 samples per second b) Create a sequence for Vout from Vin using voltage division and plot it c) (sps) and plot it. R2 in the same window. Insert a legend and axis labels. Compute the RMS values of Vout and Vin from these arrays [Hint: Use a discrete-time version of Eq. (12)] Problem 2 (30 points): For the circuit and input waveform used in Exercises 2.3 and 2.4, calculate and plot the capacitor's theoretic charging and discharging voltages [Hint: Use Eq. (7) and (8); pick a suitable value for the sps]. Proble (30 points): For the circuit used in Exercise 3.4, generate a Bode plot theoretically (the gain response only);this should look similar to the upper plot in Figure 15 [Hint: Use Eq. (13) and (15). Use "semilogx" so that the X-axis of your plot is in the log scalel
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
