Question: Coding problems: HW9 2 An electrical circuit has a resistor and a capacitor. The initial charge on the capacitor is 100V. When the power supply
Coding problems: HW9 2 An electrical circuit has a resistor and a capacitor. The initial charge on the capacitor is 100V. When the power supply is detached, the capacitor voltage changes as shown in the table below: Voltage (V) 100 62 38 211 .53.0 3.5 4.0 Use MATLAB to find a best-fit equation to the data trend. Try several possibilities-linear, parabolic and exponential, and include r in your analysis. Use the best equation to predict the capacitor charge after 5 seconds. Plot the equation out to 5 seconds & print the answer with fprintf. Time (S)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
