0% found this document useful (0 votes)
64 views2 pages

Madhu Vachspati Institute of Engg. & Technology Experiment No.7 Objective

This document provides instructions for solving an ordinary differential equation (ODE) using MATLAB. It outlines two main steps: 1. Write the ODE in standard form using MATLAB syntax like 'dsolve'. 2. Plot the solution curve using commands like 'ezplot' to generate a figure showing the time response of the given differential equation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views2 pages

Madhu Vachspati Institute of Engg. & Technology Experiment No.7 Objective

This document provides instructions for solving an ordinary differential equation (ODE) using MATLAB. It outlines two main steps: 1. Write the ODE in standard form using MATLAB syntax like 'dsolve'. 2. Plot the solution curve using commands like 'ezplot' to generate a figure showing the time response of the given differential equation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like