&
TECHNOLOGY
NUMERICAL TECHNIQUE LAB (EEE-351)
Experiment No.7
In mat lab
and
so on.
Step:-2
Syntax:
>>dsolve(D2y+3*Dy+2*y=24, y(0)=10, Dy(0)=0)
The output will :y = 12+2*exp(-2*t)-4*exp(-t)
Then for plot :- >>ezplot(y,[0 :6])
12+2 exp(-2 t)-4 exp(-t)
12
11.8
11.6
11.4
11.2
11
10.8
10.6
10.4
10.2
10
0
3
t
Experiment No.7
Result:figure.
Experiment No.7
EED MVIET/2010Page 2