PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB

(sharon) #1

186 Practical MATLAB® Applications for Engineers


*********************************************************
iR2 =
5*exp(-t)
*********************************************************
iR5 =
2*exp(-2/5*t)
*********************************************************

FIGURE 2.87
Transient voltage plots across R of Example 2.25.


0 0.5 1 1.5 2 2.5 3

0

1

2

3

4

5

6

7

8

9

10

11

time t/sec

Voltages across R, for R = 1, 2, and 5

voltage

R = 1 ohm
R = 2 ohms
R = 5 ohms

FIGURE 2.86
Transient voltage plots across C of Example 2.25.


0

0

1

2

3

4

5

6
voltage

7

8

9

10

11

0.5 1 1.5
time t/sec

2 2.5 3

Voltage across C for R = 1, 2, and 5
R = 1 ohms
R = 2 ohms

R = 5 ohms
Free download pdf