Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3: Projectile Range Model Learning objective: Create and manipulate 1D Arrays using a function in MATLAB. Engineering focus: Projectile Motion (mechanical, aerospace) Lead Team

image text in transcribedimage text in transcribed

Problem 3: Projectile Range Model Learning objective: Create and manipulate 1D Arrays using a function in MATLAB. Engineering focus: Projectile Motion (mechanical, aerospace) Lead Team Member: Background: The distance (range) a projectile is travels horizontally (excluding drag) is dependent on the initial velocity when released, the launch angle and force of gravity acting on the projectile. The formula is provide here: horizontal range = [(initial velocity)* (sin ( 2 * launch angle)]/(2 * gravity) a) Create function (ProjectileRangem) which returns the range when provided the initial velocity in meters and and launch angle in degrees. Gravity should initial velocity = u be a constant with the function (9.81 launch angle = to the horizontal m/s). b) Create a script (A3_P3_Range.m) file range =? that completes the following: i) Construct an row array for initial velocity (initialVelocity) that begins with 10 m/s and ends at 60 m/s. Space the entries by 5 m/s. ii) Use the ProjectileRange function to create an array (varyVelocity) of answers for the initial Velocity values and a launch Angle of 45. Use the abs () command to create a logic array (DearestLogic) that identifies the outputs that are within 5 meters of a 100m target. Use the max () command and element by element. *" multiplication to identify the value closest to 100 meters. Construct a row array for launch angle (launchAngle) that begins with a 40 angle and ends at a 50 angle. Space the entries by 2. Use the ProjectileRange function to create an array (varyAngle) of answers for the launchAngle values and an initial velocity of 18 m/s. vii) Assign the maximum value of range from this array to maxRange1. viii) Update launchAngle array with default spacing for 40-50. ix) Repeat range calculation and find maximum value, maxRange2. 3 3 3 5 x) Configure output as shown: --- OUTPUT --- At and angle of 45, the range nearest 100 m for these velocities is XXX.xx m At an initial velocity of 18 m/s, the maximum range for these angles is XXXexy m For the revised angle array, the new maximum range at an initial velocity of 18 m/s is XX.XX m Cut & Paste your projectileRange.m code below: Cut & Paste your A2_P3_Range.m code below: Cut & Paste your Command Window output below

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions