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
Expert Solution & Answer
Check Mark
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.

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
ctor es ces If need help after the second attempt to this question, click Show Detailed Solution button below for formula and a similar problem. A researcher believes a new diet will have a positive impact on the health of adult lab mice but the effects on the weight of the mice are unknown. A sample of 10 mice was obtained and the mice were weighed before and after the diet treatment. Listed below are the measurement results: Click this button to reveal the data. Click again to collapse it. Mouse Before(g) After(g) Difference(g) 1 34.2 33.4 0.8 2 35 34.7 0.3 3 34.4 34.9 -0.5 35.9 34.4 1.5 5 33.2 32.8 0.4 6 35.8 34.5 1.3 7 35.4 35.6 -0.2 8 34.2 33.1 1.1 9 38.2 38.3 -0.1 10 34.8 33.9 0.9 Click this button to reveal the summary of data. Click again to collapse it. Before(g) After(g) Difference(g) Average Standard deviation 35.11 1.36 34.56 1.57 0.55 0.68 Click Download CSV to download csv file of data or copy/paste the data into Excel. After downloading the file, you may want to save it…
A food-frequency questionnaire is used to measure dietary intake. The respondent specifies the number of servings of various food items they consumed over the previous week. The dietary cholesterol is then quantified for each respondent. The researchers were interested in assessing if there was an association between dietary cholesterol intake and high blood pressure. In a large sample of individuals who had completed the questionnaire, 250 persons with a high dietary cholesterol intake (greater than 300 mg/day) were selected and 250 persons with a low dietary cholesterol intake (less than 300 mg/day) were selected. The 500 selected participants had their medical history taken and were classified as having normal or high blood pressure. The data are given here. Blood Pressure Dietary Cholesterol High Total Low High 159 91 250 Low 78 172 250 Total 237 263 500 Test 2: two-tailed test for comparing two independent proportions 1. Clearly state the null and alternative hypothesis 2.…
Test 1: Chi-Square test for independence Clearly state the null and alternative hypothesis Calculate the test statistic and p value. Show all your work for calculating the test statistic and probability statement for p-value. You may use MINITAB to get the final value of test statistic and p value and you must attach any MINITAB outputs) State the final conclusion at 5% significance level
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
Text book image
College Algebra
Algebra
ISBN:9781337282291
Author:Ron Larson
Publisher:Cengage Learning
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell
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