Develop a user-defined function that will take as input the mortar firing angle, the distance to target
Question:
Develop a user-defined function that will take as input the mortar firing angle, the distance to target and the initial mortar velocity (those better in matlab can also have the target elevation as an input; others: just assume the mortar launch point elevation and target elevation are the same at zero). The function should plot to a figure window the mortar trajectory at various stages of flight while using the pause(n) function to see the intermediate positions. Assume a HIT if the mortar strikes within 10 meters of the target location. You should indicate at the end of the simulation if the target was hit or not and the distance away from the target the mortar landed. This may include altering the plot, and/or including text on the plot, and/or including text in the command window.
Accounting Information Systems
ISBN: 978-0132552622
12th edition
Authors: Marshall B. Romney, Paul J. Steinbart