MATLAB: A Practical Introduction to Programming and Problem Solving
MATLAB: A Practical Introduction to Programming and Problem Solving
5th Edition
ISBN: 9780128163450
Author: ATTAWAY
Publisher: ELSEVIER
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!
Students have asked these similar questions
Discuss and explain in the picture
Bob and Teresa each collect their own samples to test the same hypothesis. Bob’s p-value turns out to be 0.05, and Teresa’s turns out to be 0.01. Why don’t Bob and Teresa get the same p-values? Who has stronger evidence against the null hypothesis: Bob or Teresa?
Review a classmate's Main Post. 1. State if you agree or disagree with the choices made for additional analysis that can be done beyond the frequency table. 2. Choose a measure of central tendency (mean, median, mode) that you would like to compute with the data beyond the frequency table. Complete either a or b below. a. Explain how that analysis can help you understand the data better. b. If you are currently unable to do that analysis, what do you think you could do to make it possible? If you do not think you can do anything, explain why it is not possible.
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.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Trigonometry (MindTap Course List)
Trigonometry
ISBN:9781305652224
Author:Charles P. McKeague, Mark D. Turner
Publisher:Cengage Learning
Text book image
Trigonometry (MindTap Course List)
Trigonometry
ISBN:9781337278461
Author:Ron Larson
Publisher:Cengage Learning
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