Homework 2 Solve the following problems using MATLAB and wri
Homework #2
Solve the following problems using MATLAB and write a report that has the codes and figures
Write a function that combines two parallel resistors and returns the combined value
Restate the problem and paste the script into your final report (no extra write-up required)
Write a function that combines two series capacitors and returns the combined value
Restate the problem and Paste the script into your final report (no extra write-up required)
Evaluate the combined Resistance (Req) in the following circuit using the function you defined in (1)
R1 = last two digit of your ID x 1
R2 = last two digit of your ID x 2
R3 = last two digit of your ID x 5
R4 = last two digit of your ID x 1
R5 = last two digit of your ID x 2
R6 = last two digit of your ID x 2
R7 = R8 = R9 = last two digit of your ID / 3
If you don’t want to see the answer twice you need to add a semicolon
Restate the problem include the command calls and the final Resistance value
Evaluate the combined Capacitance (Ceq) in the following circuit using the function you defined in (2)
C1 = last two digit of your ID x 1
C2 = last two digit of your ID x 2
C3 = last two digit of your ID x 2
C4 = last two digit of your ID
C5 = last two digit of your ID x 3
If you don’t want to see the answer twice you need to add a semicolon
Restate the problem include the command calls and the final Capacitance value
Plot the voltage curve of the fully charged Capacitance in series above being discharged by the Resistor in Part 3 over time. Note Vs is 12 Volts & Tau = Ceq * Req (for discharge only)
Restate the problem include the equation used, the inputs to the equation, the plot, and a brief explanation of the plot.
Solution
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
plot(Vd);

