0% found this document useful (0 votes)
73 views4 pages

Matlab Project

This project develops a MATLAB simulation of projectile motion that takes in initial velocity, launch angle, and gravity to calculate and visualize the trajectory and key parameters like range, maximum height, and time of flight.

Uploaded by

aliroomanq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views4 pages

Matlab Project

This project develops a MATLAB simulation of projectile motion that takes in initial velocity, launch angle, and gravity to calculate and visualize the trajectory and key parameters like range, maximum height, and time of flight.

Uploaded by

aliroomanq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

MATLAB PROJECT

Project
Projectile Motion Simulation in MATLAB
Project Team
Ali Rooman(23TL010)
Feroz Ali(23TL024)
Submitted to
Engr Shakeel Laghari

Project Report: Projectile Motion Simulation in MATLAB


1. Introduction:
Projectile motion is a fundamental concept in physics, engineering, and many other fields.
Understanding and analyzing the motion of projectiles is crucial for various applications,
including ballistics, sports, and space exploration. In this project, we present a simulation of
projectile motion implemented in MATLAB, a powerful computational tool widely used for
scientific and engineering applications.

2. Objectives:
The primary objective of this project is to develop a MATLAB program that simulates the
trajectory of a projectile launched with a given initial velocity and angle. Additionally, we
aim to calculate and visualize key parameters such as range, maximum height, and time of
flight of the projectile.

3. Methodology:
The simulation is implemented using the following steps:
 Accept input parameters from the user: initial velocity (V0), launch angle (theta), and
gravitational acceleration (g).
 Convert the launch angle from degrees to radians for calculations.
 Calculate the initial velocity components in the x and y directions.
 Create a time array t from 0 to the time at which the projectile hits the ground.
 Calculate the trajectory of the projectile using the equations of motion for uniform
acceleration.
 Compute key parameters such as maximum height (H), range (R), and time of flight
(T).
 Plot the trajectory of the projectile using MATLAB's plotting functions.
 Display the results including range, maximum height, and time of flight.

4. Results and Discussion:


The simulation successfully visualizes the trajectory of the projectile based on the user-
provided initial velocity and launch angle. The plot illustrates the path followed by the
projectile, while the calculated parameters provide valuable insights into its motion. For
example, the range indicates how far the projectile travels horizontally, while the maximum
height represents the peak vertical distance reached.

5.Program Screenshots.
Script Editor
The code is written in the editor, then the compiler compiles it, and finally, one interacts with
it through the command window.
6. Conclusion:

In conclusion, the MATLAB simulation of projectile motion presented in this project serves
as a valuable tool for understanding and analyzing the motion of projectiles. By providing a
visual representation of the trajectory and computing key parameters, the simulation
enhances the learning experience and facilitates further exploration of projectile motion
concepts.

Command Window

Command window.
Interacting with the MATLAB program for projectile motion simulation occurs primarily
through the command window:
1. Initial Velocity: Users input the initial velocity (in m/s) of the projectile.
2. Launch Angle: The launch angle (in degrees) relative to the horizontal axis is
specified.
3. Gravitational Acceleration: Input is provided for gravitational acceleration (in m/s²).
Output Graph

The graph produced by the code will display the trajectory of the projectile in a Cartesian
coordinate system. The x-axis represents the horizontal distance traveled by the projectile,
and the y-axis represents the vertical distance.

6. Conclusion:
In conclusion, the MATLAB simulation of projectile motion presented in this project serves
as a valuable tool for understanding and analyzing the motion of projectiles. By providing a
visual representation of the trajectory and computing key parameters, the simulation
enhances the learning experience and facilitates further exploration of projectile motion
concepts.

You might also like