Question

4. Use Matlab to assign values to the variables as follows: V=12, R=50, L=5 and C=104. The

following function is the solution of the capacitor voltage drop in a series RLC electric

circuit.

v(t) = Ve

-R

21

R

[-(4)

a. Evaluate the function v for t=0.1 and t=0.5 (employ format short).

b. Plot v vs. t, from t=0 to 0.7 employing the plot command.

c. Add a grid, x-axis title 't' and y-axis title 'v(t)'.

Question image 1