Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB help Lab Exercises: Trajectory of a Baseball Consider the trajectory of a baseball thrown from centerfield toward home plate (Figure 1) with an initial

image text in transcribed

MATLAB help

Lab Exercises: Trajectory of a Baseball Consider the trajectory of a baseball thrown from centerfield toward home plate (Figure 1) with an initial speed of 90 mi/h at an initial launch angle of 45 1- Create a new script (call it Lab03_YourName) and create the following variables vo is the initial velocity(9132.0 and g is the gravitational aceleration (2. 2- Define time variable 0st6) using linspace function. Be sure you create at least 10000 points. Type help linspace if you do not remember how linspace function works. Define x, y and r as functions of time neglecting the effect of drag (resistance to the velocity of the ball through air) using: 3- y o sin(45)t 0.5gt2 r -Vx(t) y(t)2 where t is time(sec) and r is the distance between the centerfielder and the baseball y(t) r(t) Launch angle 45 Figure 1. Trajectoiry of a thrown baseball Now plot y using plot t.y) and answer the following questions in your script file AFTER the required comment block and BEFORE your first line of code. Make sure they entered as a comment block: 4. CMPSC 200, Fall 18 Lab #3 Handout Page 1 of Question1: When does the baseball approximately hit the ground? Use zooming to find answer with two decimal digits.(30 pts) 5- Now plot r and answer the following question: Question2: What is the distance between the centerfielder and the baseball after 1 sec? (30 pts) Use zooming to find answer with one decimal digit. Now plot x and answer the following question: Question3: How far is the baseball thrown over (Range)? (30 pts) 6

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago