Graphical simulation of the motion of a projectile

Assignment Help MATLAB Programming
Reference no: EM133295379

Computer Methods - Projectile Motion Simulator

Aim
To create a script that produces a graphical simulation of the motion of a projectile. All submissions must include the following essential components:

1. Code to simulate the path of the projectile under the following two scenarios:

Scenario 1 - No obstacles in the path of the object

Scenario 2 - A wall of a finite height (defined by the user) and an infinitesimal thickness between the point of launch and the intended landing point.

Scenario 1 - No obstacles in the way
1) Ask the user for the height of the launching point.
2) Ask the user for the initial velocity of the object, i.e., the magnitude and direction.
3) Apply the SUVAT equations to calculate the object's trajectory (ignore the air resistance).
4) Finish the simulation when the object hits the ground.
5) Plot the trajectory of the object.
6) Communicate the time of flight of the object to the user as well as the total horizontal distance traveled.
7) Make an animation of the object flying through the air.
8) Make a GUI with a slider that will highlight a point on the graph at each corresponding value of the slider along the entire path of the object once the animation is finished. The program must also show the following information about the highlighted point of the graph:
i. The object's coordinates: Horizontal and Vertical
ii. The time passed since the object was launched.
iii. The ob'ect's velocit : Magnitude and Direction.

Scenario 2 - A wall in the way (2,3,5,7,8 same as Scenario 1)

1) Ask the user for the height of the launching point as well as the wall's height and distance to it.

4) Finish the simulation when the object hits either the ground or the wall.

6) Communicate the time of flight of the object to the user as well as either the total horizontal distance traveled if it hits the ground or the height at which the object hits the wall.

2. The code should be fully documented, i.e. make a VERY extensive use of 'comment statements'.

3. Extension: there is a portion of credits available to those who extend their program beyond the basic tasks. For example, a well thought through GUI, the use of functions, a script that draws the arrows showing the velocity vectors at a highlighted point and many more.

Reference no: EM133295379

Questions Cloud

Printablevector and printablelist : You will implement a polymorphic list. That is, you will create one parent class PrintableIterable and two child classes PrintableVector and PrintableList.
What conditions they should advise members to manufacture : What conditions they should advise members to manufacture and sell more electric cars or to continue developing more efficient combustion-engine cars
What would the price be and why : What would the price be, and why? When is payment due? By when must be delivery be made? Where must delivery be made?
Favorite hobby or interest will be displayed : Write a program that will display your name, then when the user presses sw1 (d8) your favorite hobby or interest will be displayed.
Graphical simulation of the motion of a projectile : ENGFF003 Computer Methods, University of Nottingham, Projectile Motion Simulator - To create a script that produces a graphical simulation of the motion
Explain the company operating model as they explain it : :- Explain the company's operating model as they explain it, and contrast its stated model with the accusations that it is in fact a pyramid scheme and identify
DRM can be cracked for piracy purposes : Write about recent news not more than six months old. DRM as a measure for digital content protection. DRM can be cracked for piracy purposes
Calculate Theil index and Atkinson index : Calculate the Theil index and the Atkinson index (use = 1) of house-hold income for all households
Manufacture and design of many products and services : McDonaldization is not limited to the food industry. It can be seen in the manufacture and design of many products and services.

Reviews

len3295379

12/19/2022 9:58:44 PM

Projectile motion (Matlab script) I need in matlab programming and as per attached instructions. Assign to Mechanical,Physics expert having knowledge in matlab .

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd