You are on page 1of 6

EXPERIMENT 8: DIFFERENTIAL EQUATIONS

STUDENT’S NAME: AMNA AZMAT RAZA MALIK


STUDENT’S ID: 20161934
DATE OF SUBMISSION: 26 Dec 2018
AIM
The aim of this experiment is to get familiar with differential equations and to
implement it on MATLAB.

INTRODUCTION
Numerical methods for ordinary differential equations are methods used to
find numerical approximations to the solutions of ordinary differential
equations (ODEs). Their use is also known as "numerical integration",
although this term is sometimes taken to mean the computation of integrals.
Many differential equations cannot be solved using symbolic
computation ("analysis"). For practical purposes, however – such as in
engineering – a numeric approximation to the solution is often enough.
The algorithms studied here can be used to compute such an approximation.
An alternative method is to use techniques from calculus to obtain a series
expansion of the solution. Ordinary differential equations occur in many
scientific disciplines, for instance in physics, chemistry, biology,
and economics. In addition, some methods in numerical partial differential
equations convert the partial differential equation into an ordinary differential
equation, which must then be solved.

PROCEDURE

1) A square wave with a 200 second period for 500 seconds was applied:
[u,t] = gensig('square',200,500,1);
2) Output waveform for R L C values as follows: R=4; L=5; C=3;
lsim(tf([1],[C*L C*R 1]),u,t) was plotted
3) Plotted again for values for R= 2 , 1 and 0 Ω

R =2
R=1

R=0
CONCLUSION

In this experiment we got familiar with the differential equations and how to
implement it using MATLAB. We were able to plot the graph.

You might also like