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 301234567891011time t/secVoltages across R, for R = 1, 2, and 5voltageR = 1 ohm
R = 2 ohms
R = 5 ohmsFIGURE 2.86
Transient voltage plots across C of Example 2.25.
00123456
voltage78910110.5 1 1.5
time t/sec2 2.5 3Voltage across C for R = 1, 2, and 5
R = 1 ohms
R = 2 ohmsR = 5 ohms