When an object with negligible air resistance is launched with a velocity magnitude vo from an...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
When an object with negligible air resistance is launched with a velocity magnitude vo from an initial height yo at an angle in a gravitational field of acceleration a, it will follow a parabolic arc. The vertical displacement y of the object is related to the horizontal displacement x of the object by the relation Vo.y y=yo+ -x- VO,x Vox where where the subscripts x and y identify the x- and y-directions, respectively, and a is the magnitude of the gravitational acceleration. The initial velocity of the object in the x- and y-directions, Vox and voy, respectively, are related to the launch angle through the relations VO,x = Vo Cos (0) and vo.y = vo sin(0) Write a script that calculates the trajectory of an object launched at three different launch angles, 0 = [20, 40, 60]. The object is thrown at vo = 20 m/s from an initial height of yo = 200 cm above the earth's surface and the object cannot fall through the surface of the earth. Gravitational acceleration near Earth's surface is approximately a = 9.81 m/s. Your script should do the following: Define a vector of 250 evenly-spaced x values for which you will calculate the object's trajectory. This vector should represent x values from 0 meters to 40 meters and be called x. Your object trajectories should be stored in the rows of a matrix called Traj, with the first row representing the trajectory for # = 20, and so on. The values stored in Traj should represent vertical displacements with units of meters. . Since it is physically meaningless for the object to fall through the surface of the earth, set any elements of Traj that repesent objects that have fallen through the surface of the earth to 0. There are many ways to do this. The most straightforward is probably to write this code in MATLAB then inspect the Traj matrix to figure out which elements represent objects that have fallen through the surface of the earth and replacing those elements with 0. A faster way to do this leverages the find function, which I recommend you try if you are looking for a challenge. Store the maximum vertical displacement for each launch angle to a column vector called maxy. The first element should be the max displacement for 0 = 20, and so on. 1% Define constants 2 v0 = 20; 3 ye = 200 / 100; 4 a = 9.81; 17 5 angles = [20, 40, 60]; % Launch angles in degrees 6 X = linspace(0, 40, 250); % Vector of x values (0 to 40 meters) 7 8 % Initialize matrices 9 Traj zeros(length(angles), length(x)); % Matrix to store trajectories 10 maxy= zeros (length(angles), 1); 11 12% Calculate trajectories for each angle i=1:length(angles) 13 for 14 15 16 18 19 20 21 22 23 24 25 26 end = % Initial velocity (m/s) % Initial height (converted to meters) % Gravitational acceleration (m/s^2) theta = deg2rad (angles (i)); % Convert angle to radians vex = V0 * cos (theta); * voy = V0 sin(theta); % Column vector to store max vertical displacements = % Initial velocity in the x-direction % Initial velocity in the y-direction % Calculate vertical displacement using the given formula Traj(i, :) = y + (vy / vex) * x - 0.5 * a * (x / vox).^2; % Set elements that have fallen through the surface to 0 Traj(i, Traj(i, :) < 0) = 0; % Find and store the maximum vertical displacement maxy(i) max(Traj(i, :)); 27 28 % Display the maximum vertical displacements for each angle 29 disp('Maximum Vertical Displacements: '); 30 disp(maxy); 31 32 % Plot the trajectories 33 figure; 34 hold on; 35 for i=1:length(angles) 36 plot(x, Traj(i, :), 'DisplayName', ['\theta 37 end 38 xlabel('Horizontal Displacement (m)'); 39 ylabel('Vertical Displacement (m)'); 48 title('Trajectory of Object Launched at Different Angles'); 41 legend ('Location', 'northwest'); 42 grid on; 43 hold off; ^^ = num2str (angles (i)) degrees']); Is maxy correct? The submission must contain a variable named maxY. When an object with negligible air resistance is launched with a velocity magnitude vo from an initial height yo at an angle in a gravitational field of acceleration a, it will follow a parabolic arc. The vertical displacement y of the object is related to the horizontal displacement x of the object by the relation Vo.y y=yo+ -x- VO,x Vox where where the subscripts x and y identify the x- and y-directions, respectively, and a is the magnitude of the gravitational acceleration. The initial velocity of the object in the x- and y-directions, Vox and voy, respectively, are related to the launch angle through the relations VO,x = Vo Cos (0) and vo.y = vo sin(0) Write a script that calculates the trajectory of an object launched at three different launch angles, 0 = [20, 40, 60]. The object is thrown at vo = 20 m/s from an initial height of yo = 200 cm above the earth's surface and the object cannot fall through the surface of the earth. Gravitational acceleration near Earth's surface is approximately a = 9.81 m/s. Your script should do the following: Define a vector of 250 evenly-spaced x values for which you will calculate the object's trajectory. This vector should represent x values from 0 meters to 40 meters and be called x. Your object trajectories should be stored in the rows of a matrix called Traj, with the first row representing the trajectory for # = 20, and so on. The values stored in Traj should represent vertical displacements with units of meters. . Since it is physically meaningless for the object to fall through the surface of the earth, set any elements of Traj that repesent objects that have fallen through the surface of the earth to 0. There are many ways to do this. The most straightforward is probably to write this code in MATLAB then inspect the Traj matrix to figure out which elements represent objects that have fallen through the surface of the earth and replacing those elements with 0. A faster way to do this leverages the find function, which I recommend you try if you are looking for a challenge. Store the maximum vertical displacement for each launch angle to a column vector called maxy. The first element should be the max displacement for 0 = 20, and so on. 1% Define constants 2 v0 = 20; 3 ye = 200 / 100; 4 a = 9.81; 17 5 angles = [20, 40, 60]; % Launch angles in degrees 6 X = linspace(0, 40, 250); % Vector of x values (0 to 40 meters) 7 8 % Initialize matrices 9 Traj zeros(length(angles), length(x)); % Matrix to store trajectories 10 maxy= zeros (length(angles), 1); 11 12% Calculate trajectories for each angle i=1:length(angles) 13 for 14 15 16 18 19 20 21 22 23 24 25 26 end = % Initial velocity (m/s) % Initial height (converted to meters) % Gravitational acceleration (m/s^2) theta = deg2rad (angles (i)); % Convert angle to radians vex = V0 * cos (theta); * voy = V0 sin(theta); % Column vector to store max vertical displacements = % Initial velocity in the x-direction % Initial velocity in the y-direction % Calculate vertical displacement using the given formula Traj(i, :) = y + (vy / vex) * x - 0.5 * a * (x / vox).^2; % Set elements that have fallen through the surface to 0 Traj(i, Traj(i, :) < 0) = 0; % Find and store the maximum vertical displacement maxy(i) max(Traj(i, :)); 27 28 % Display the maximum vertical displacements for each angle 29 disp('Maximum Vertical Displacements: '); 30 disp(maxy); 31 32 % Plot the trajectories 33 figure; 34 hold on; 35 for i=1:length(angles) 36 plot(x, Traj(i, :), 'DisplayName', ['\theta 37 end 38 xlabel('Horizontal Displacement (m)'); 39 ylabel('Vertical Displacement (m)'); 48 title('Trajectory of Object Launched at Different Angles'); 41 legend ('Location', 'northwest'); 42 grid on; 43 hold off; ^^ = num2str (angles (i)) degrees']); Is maxy correct? The submission must contain a variable named maxY.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these mechanical engineering questions
-
An object with negligible air resistance is dropped from the top of the Willis Tower in Chicago at a height of 1451 feet. During the first second of fall, the object falls 16 feet; during the second...
-
4. Using Euler's method to solve following equation with time step of 1. dy = = 4t - 0.5y dt y(0)=2 You only need to write out three steps to get values of y(1), y(2), y(3). 5. Write your Euler's...
-
Okpala, Bell, and Tuprah (2007) evaluated student achievement in mathematics at one of two types of schools: public middle schools of choice or traditional public middle schools. The following is an...
-
Using data from the LPGA tour, a regression analysis was performed using x = average driving distance and y = scoring average. Using the output from the regression analysis shown below, determine the...
-
Figure P12.49 shows a piping system with frictional losses of \(h_{\mathrm{L} 1-2}=4.0 Q^{2}\), with \(h_{\mathrm{L} 1-2}\) in \(\mathrm{ft}\) and \(Q\) in \(\mathrm{gal} / \mathrm{min}\). The...
-
Gasoline is sold through local gasoline stations under perfectly competitive conditions. All gasoline station owners face the same long-run average cost curve given by AC = .01q 1 + 100/q and the...
-
what kind of training plan is needed to help employees engage with a new digital tool like project management software? What are some of the associated costs for the system implementation? Provide an...
-
Cost of Production and Journal Entries Franklin Paper Company manufactures newsprint. The product is manufactured in two departments, Papermaking and Converting. Pulp is first placed into a vessel at...
-
What does this code do? Comparator sortByYearDescTitle (b1, b2)->b2.getPublication Year() bl.getPublication Year() == 0 ?bl.getTitle().compareTo (b2.getTitle()) : b2.get Publication Year()...
-
What is global investment outlook for US Large Cap Market, the mutual fund Akre Focus Instl-AKRIX?
-
Please write Apply content marketing fundamentals principles to develop a basic content marketing strategy and plan including: storytelling, content marketing mission, audience persona, brand voice,...
-
A tortoise and hare start from rest and have a race. As the race begins, both accelerate forward.The hare accelerates uniformly at a rate of 1 . 7 m / s ^ 2 for 4 . 0 s . It then continues at a...
-
"A Company has a bond outstanding with a face value of $10000 that reaches maturity in 5 years. The bond certificate indicates that the stated coupon rate for this bond is 4.9% and that the coupon...
-
Assume that, you as a management accountant, are assigned to project a colleges maintenance costs for the next year. From company records, you can collect information related to costs and volumes for...
-
Nike manufactures shoes and sportswear. How has the Internet changed the way this company communicates with its suppliers and retail customers?
-
The IQ scores for a sample of students at a small college roughly follow the normal distribution y = 0.0266e(x100)2/450, 70 x 115 where x is the IQ score. (a) Use a graphing utility to graph the...
-
The displacement from equilibrium of an oscillating weight suspended by a spring and subject to the damping effect of friction is given by y(t) = 2et cos 6 cos 6 t, where y is the displacement in...
-
Use a graphing utility to graph the functions y1 = ln x ln(x 3) and y2 = In x / x - 3 in the same viewing window. Does the graphing utility show the functions with the same domain? If not, explain...
-
(a) Complete a steady-state simulation of the vinyl-chloride process in Figure 2.6. First, create a simulation flowsheet. Assume that: Cooling water is heated from 30 to \(50^{\circ} \mathrm{C}\)...
-
For the monochlorobenzene separation process in Figure 7.14, the results of an ASPEN PLUS simulation are provided in the multimedia modules under ASPEN \( ightarrow\) Principles of Flowsheet...
-
Complete a simulation of the entire process for the hydrodealkylation of toluene in Figure 6.14. Initially, let the purge/recycle ratio be 0.25 ; then, vary this ratio and determine its effect on the...
The Hobbit And Tolkien S Mythology Essays On Revisions And Influences - ISBN: 0786479604 - Free Book
Study smarter with the SolutionInn App