An interactive introduction to MATLAB

(Jeff_L) #1
C.2plotting 77


  1. 2D plotting
    A resistor,R=4 Ω, and an inductor,L=1.3 H, are connected in a
    circuit to a voltage source as shown in Figure 19a. When the voltage


+ V(t)





R

L

i(t)

(a) Circuit layout

Time (s)

Voltage (V)

0.5

12

0

(b) Voltage input
Figure 19: RL circuit

source applies a rectangular pulse with an amplitude ofV=12 Vand a
duration of0.5 s, as shown in Figure 19b, the currenti(t)in the circuit
as a function of time is given by:

i(t) =V
R

(

1 −e−LRt

)

for 06 t 6 0.5 s

i(t) =e
−LRtV
R

(

e
0.5RL
− 1

)

for 0.5 6 t s

Make a plot of the current as a function of time for 06 t 6 2 s.
Free download pdf