Home /
Expert Answers /
Computer Science /
4-the-equations-that-respectively-describe-the-time-varying-voltage-v-t-established-across-an-in-pa831
(Solved): 4. The equations that respectively describe the time-varying voltage v(t), established across an in ...
4. The equations that respectively describe the time-varying voltage v(t), established across an inductor and time-varying current i(t) flowing through an inductor in an RL circuit connected to a d.c. voltage source when a switch is thrown at time 0 are given by: v(t)=Vse−t/T and i(t)=IL⋅(1−e−/t) where the throw of the switch activates the two behaviors at time 0 . The constant value τ, as you may recall, describes the circuit's time constant. (Each part worth 3 points.) (a) In your exam booklet, write a Command Window sequence that defines the values of vS (MATLAB-ese for Vs ) to be 6 volts, tau to be 50μsec, and Is to to be 4mA. (b) Then, continue the coding sequence to define the vector, t such that it spans a time sequence starting at 0 and ending at 6τ (i.e., tau) where the time between adjacent elements represents 1μ sec. (c) Use all the above to write the vectors v and i to represent the respective equations v(t) and i(t) as given above. (d) Then use the vector pairs to make a plot of v(t) and i(t) on the same time axis over the 6τ time span where the time axis is expressed in μ sec, the voltage plot is expressed in volts, and the current plot is expressed in mA. (e) Use the t,v, and i vectors to write Command Window code that displays a formatted table showing values the instantaneous values for the voltages and currents every 10μsec from 0 up through 2τ. The table should show the time values as integers where the times are expressed in μsec, the voltages are expressed in volts, and the currents are expressed in mA.