Question: Write a function in MATLAB called VOLTAGE to perform the integration shown below to determine the voltage in a capacitor. Voltage = Q i(t)dt

Write a function in MATLAB called VOLTAGE to perform the integration shown below to determine the voltage in a capacitor. Voltage = Q i(t)dt + You will have two inputs, a vector of time values, and a list of corresponding currents, i, as measured in the circuit by an engineering student. The output of the function should be a single number equal to the voltage computed using the trapz command to perform the integral shown Use the following parameters: Initial Charge Q=0 Capacitance C = 10-7 HINT: x axis is time, y axis is current
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
