The main goal of this paper is to analyze the mechanical oscillations of a pendulum using MATLAB software.

There are two main types of mechanical oscillations: frictionless and damped oscillations.

The governing differential equation for frictionless oscillations is:

The governing differential equation for damped oscillations is:

The trapezoidal and Euler methods will be used for the numerical solution by the MATLAB software.

The code is shown below:

Results:

As can be seen, the Euler rule provides a more accurate solution than the trapezoidal rule. The damped amplitude of oscillations decreases dramatically, while frictionless oscillations have an infinite time of oscillation and amplitude decrement is absent for them.

## Calculation Assignments Help from the Experts

The MATLAB software helps thousands of engineers and scientists to deal with their tasks in a comfortable and easy way. It is necessary for technical students to learn more about this software and how to use it for their homework. Here, you can see an example of a differential equation and MATLAB solution for frictionless and damped pendulum oscillations.

In case you want to learn more about engineering, mathematics, statistics, or any other exact science, check the AssignmentShark blog. Our technical writers provide various guides and samples regularly to make your college life easier.

If you need homework assistance with one of the technical disciplines, or looking for someone to solve my accounting problem, assign one of our qualified experts! They’re able to help you with pendulum oscillations and other assignments at an affordable price. We’re available 24/7 so don’t hesitate to as for online assignment help at any time!