MATLAB: A Practical Introduction to Programming and Problem Solving
MATLAB: A Practical Introduction to Programming and Problem Solving
5th Edition
ISBN: 9780128154793
Author: Stormy Attaway Ph.D. Boston University
Publisher: Elsevier Science
bartleby

Videos

Question
Book Icon
Chapter 14, Problem 46E
To determine

To find:

• The range of the given projectile equations.

• The graph of the projectile at suitable x values.

• The graph of the height versus time.

• The range of the given projectile equations.

Expert Solution & Answer
Check Mark

Answer to Problem 46E

Solution:

• The required range is 0.35

• The required graph is stated as follows.

• The required graph is stated as follows.

• The required apex is 0.1.

Explanation of Solution

• The range of the given projectile equations.

The given equations are,

x=v0cos(θ0)ty=v0sin(θ0)t12gt2

The formula to calculate the range is,

range=v02sin(2θ0)g

Here, v0 is the initial velocity, θ0 is the angle of departure, g is the acceleration due to gravity and t is the time.

Let v0 be 2m/s, θ0 be 30°, t be 1sec and g be 9.81m/s.

Substitute 2m/s for v0, 30° for θ0, 1sec for t and 9.81m/s for g in the above equation.

range=v02sin(2θ0)g=22sin(2×30°)9.81=0.35

MATLAB Code:

t = 0:0.001:2;

v0 = 2;

g = 9.81;

theta = 30;

x = v0.*cosd(theta).*t;

y = v0.*sind(theta).*t -0.5.*g.*t.*t;

range = v0.^2.*sind(2*theta)/g

Save the MATLAB function with name chapter14_54793_14_46_1E.m in the current folder. Execute the function by typing the function name at the command window to generate output.

Result:

MATLAB: A Practical Introduction to Programming and Problem Solving, Chapter 14, Problem 46E , additional homework tip  1

Therefore, the result is stated above.

• The graph of the projectile at suitable x values.

MATLAB Code:

t = 0:0.001:2;

v0 = 2;

g = 9.81;

theta = 30;

x = v0.*cosd(theta).*t;

y = v0.*sind(theta).*t -0.5.*g.*t.*t;

plot(t, x)

title('Position(x) vs Time(t)')

Save the MATLAB function with name chapter14_54793_14_46_2E.m in the current folder. Execute the function by typing the function name at the command window to generate output.

Result:

MATLAB: A Practical Introduction to Programming and Problem Solving, Chapter 14, Problem 46E , additional homework tip  2

Therefore, the result is stated above.

• The graph of the height versus time.

MATLAB Code:

t = 0:0.001:2;

v0 = 2;

g = 9.81;

theta = 30;

x = v0.*cosd(theta).*t;

y = v0.*sind(theta).*t -0.5.*g.*t.*t;

plot(t, y)

title('Height(y) vs Time(t)')

Save the MATLAB function with name chapter14_54793_14_46_3E.m in the current folder. Execute the function by typing the function name at the command window to generate output.

Result:

MATLAB: A Practical Introduction to Programming and Problem Solving, Chapter 14, Problem 46E , additional homework tip  3

Therefore, the result is stated above.

• The range of the given projectile equations.

The given equations are,

x=v0cos(θ0)ty=v0sin(θ0)t12gt2

The formula to calculate the maximum time, tmax is,

tmax=v0sin(θ0)g

Here, v0 is the initial velocity, θ0 is the angle of departure, g is the acceleration due to gravity and t is the time.

Let v0 be 2m/s, θ0 be 30°, t be 1sec and g be 9.81m/s.

Substitute 2m/s for v0, 30° for θ0, and 9.81m/s for g in the above equation.

tmax=v0sin(θ0)g=2sin(30°)9.81=0.10sec

MATLAB Code:

t = 0:0.001:2;

v0 = 2;

g = 9.81;

theta = 30;

x = v0.*cosd(theta).*t;

y = v0.*sind(theta).*t -0.5.*g.*t.*t;

apex_time = v0*sind(theta)/g;

fprintf('The apex is %.1f\n', apex_time)

Save the MATLAB function with name chapter14_54793_14_46_4E.m in the current folder. Execute the function by typing the function name at the command window to generate output.

Result:

MATLAB: A Practical Introduction to Programming and Problem Solving, Chapter 14, Problem 46E , additional homework tip  4

Therefore, the required apex is 0.1.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc
Text book image
Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning
Text book image
Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning
Text book image
Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON
Text book image
The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman
Text book image
Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman
Evaluating Indefinite Integrals; Author: Professor Dave Explains;https://www.youtube.com/watch?v=-xHA2RjVkwY;License: Standard YouTube License, CC-BY
Calculus - Lesson 16 | Indefinite and Definite Integrals | Don't Memorise; Author: Don't Memorise;https://www.youtube.com/watch?v=bMnMzNKL9Ks;License: Standard YouTube License, CC-BY