Graphical simulation of the motion of a projectile

Assignment Help MATLAB Programming
Reference no: EM133320313

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

Scenario 2 - A wall in the way

1)   Ask the user for the height of the launching point.

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

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.

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

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.

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.

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 object's velocity: Magnitude and Direction.

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.

This is an open-ended project. So be smart on how you approach it. Draw a flowchart, use other project planning techniques. Plan ahead on how far you want to take the problem.

Reference no: EM133320313

Questions Cloud

Discuss the trends in supply chain management : Discuss the trends in supply chain management and examine how the wars in Russia and Ukraine will affect global supply networks. Make use of relevant examples
Field of project risk management : Identify and critique on a current article related to the field of Project Risk Management.
What is the expected duration of your commute : Which of these two routes would you pick for your commute. What is the expected duration of your commute?
What are some of the potential benefits of a more formalized : What are some of the potential benefits of a more formalized approach to forecasting for a business like M&L Manufacturing?
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
What options he can pursue to make up for lost money : how to make it safer as well as the top seven reasons why Gil should stop selling beer and what options he can pursue to make up for the lost money.
Explain how you will improve the roads transport system : explain how you will improve the road's transport system. Critically analyse the process of risk management and the benefits of Supply Chain Risk Management.
Exemplifies the character of true leader : Identify a leader (past or present) who you feel exemplifies the character of a true leader.
How to manage risks caused by wars in russia and ukraine : You would like to assess how small businesses operating in South Africa can collect information on how to manage risks caused by wars in Russia and Ukraine.

Reviews

len3320313

1/22/2023 10:02:39 PM

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

Write a Review

MATLAB Programming Questions & Answers

  Plot the pole-zero pattern, draw curves of m(w) versus

Use Matlab to check your work (pzmap). Also, use Matlab to create the Bode plot (use the “bode” command.) If this circuit were used as a filter, what type of filter would it be? Problem: For the following transfer function, plot the pole-zero pattern..

  Write a matlab script for the given conditions

Newton's method of root-finding requires solving a system of linear equations (to avoid using nonlinear optimization routines).

  What is the order of the convergence of the method

MA2252 - what values of N (and hence h), does the explicit Euler method become unstable and Is the implicit Euler method stable at these values?

  Create spatial transformation matrix

Calculating the moment invariants and Create spatial transformation matrix T4 for rotating the image - which calls to another function named

  Simulate rigid body mechanics

Write a MATLAB code to simulate rigid body mechanics. Create a video file of a free falling rod. Neglect effects from drag or loss of kinetic energy. Make sure the rod falls onto one end showing how the rigid body reacts to hitting the ground. Cannot..

  Calculate an approximation to the energy consumed

Calculate an approximation to the energy consumed over the period and calculate an approximation to the energy consumed over the period t = a to t = b.

  Implement the support vector machine algorithm

Write a program to implement the Support Vector Machine algorithm. Train an SVM classifer with data from to3 and (04 in the following way - Train your classifier with just the first patterns in 03 and aht and find the separating hyperplane and the ..

  Write and test a function that computes the time

Write a script le that accepts user input for d, L, and r and computes and displays C. Test the le with the values L = 1 m, r = 0.001 m, and d = 0.004 m.

  Simulate an analog clock

simulate an analog clock as partly demonstrated in class for the case of the second hand - Create a program called plot

  Developed a matlab code for multiobjective optimization

Developed a matlab code for multiobjective optimization checking if the developed results are good and optimum

  Impact of zigbee on telecommunication systems

Report on Impact of zigbee on telecommunication systems

  Find the number of grains in a 1 square inch area in matlab

Write a MATLAB® function called num_grains to find the number of grains in a 1-square-inch area (N) at 100 3 magnification when the ASTM grain size is known. 234 Chapter 6 User-Defi ned Functions (b) Use your function to find the number of grains for..

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