Create a function to plot the output of projectile motion with inputs x0, y0, v0x and v0y. These correspond to the (x, y) coordinates of the projectile’s start location, as well as the initial velocities in each direction. You may assume zero acceleration in the x-direction, and acceleration in the y-direction is -g ݃ where g=9.81.
Use a time series vector (1D array) to denote time, and two vectors to denote the movement in the x-direction and y-direction. Your plot should only show the trajectory until the projectile object reaches the ground.
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-52173.pdf
Comments
Leave a comment