Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write it out in matlab 3. The trajectory of a projectile fired from the ground is defined by the equations x=Votcosy=Votsin21gt2 for any firing

please write it out in matlab
image text in transcribed
3. The trajectory of a projectile fired from the ground is defined by the equations x=Votcosy=Votsin21gt2 for any firing angle and muzzle velocity Vo where g=9.81m/s2;x and y are in meters and t is the time in seconds. For any muzzle velocity Vo and firing angle the time of flight tf is tf=g2Vosin (a) Create two MATLAB functions: one function tof that takes the muzzle velocity Vo and firing angle as its input, and computes the time of flight tf, and another function traj that takes the velocity V0, firing angle , and time t as inputs, and computes the trajectory coordinates (x,y). The function tra j should be able to take the input t as an array. (b) Write a MATLAB script file that uses the functions created above to compute and plot trajectories of projectiles fired by an artillery cannon whose muzzle velocity is Vo=300m/s for the firing angles of 5,25,45,50, and 85. Label the axes appropriately and use legend to identify the trajectory (c) Use gtext to mark the trajectory that achieves the maximum x-range as ' Best Range'. Save your plot as a JPG file using a name of your choice and attach it with your submission

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions

Question

What is the principle of thermodynamics? Explain with examples

Answered: 1 week ago