Anda di halaman 1dari 2

MADHU VACHSPATI INSTITUTE OF ENGG.

&
TECHNOLOGY
NUMERICAL TECHNIQUE LAB (EEE-351)

Experiment No.7

Objective: - Solution of differential equation using MATLAB.


Apparatus Required:- Mat lab Software.
Step for solving ODE (ordinary differential equation):Step:-1 Write the problem in standard form
Write the equation in the form:
Such as

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

MADHU VACHSPATI INSTITUTE OF ENGG. &


TECHNOLOGY
NUMERICAL TECHNIQUE LAB (EEE-351)

Experiment No.7

Result:figure.

The time response of the given differential equation as shown is

Experiment No.7

EED MVIET/2010Page 2

Anda mungkin juga menyukai