P2 (70%). Assuming that horizontal position is 0, expand the program you developed in P1 in a way that it can get a range for initial vertical position or velocity or angle of projection or any combination of these variables and plot possible motion of path considering the range given for each variable. Using this program, do the following calculations/actions: a) Possible height and range, assuming that initial vertical position and velocity are constant (5%) b) Plot possible paths of motion for part a (5%) c) Possible height and range, assuming that angle of projection and velocity are constant (5%) d) Plot possible paths of motion for part c (5%) 2 e) Possible height and range, assuming that angle of projection and vertical position are constant (5%) f) Plot possible paths of motion for part e (5%) g) Possible height and range, assuming that only vertical position is constant (5%) h) Plot possible paths of motion for part g (5%) i) Possible height and range, assuming that only angle of projection is constant (5%) j) Plot possible paths of motion for part I (5%) k) Possible height and range, assuming that only initial velocity is constant (5%) I) Plot possible paths of motion for part k (5%) m) Possible height and range, assuming that all variables are changing (5%). n) Plot possible paths of motion for part m (5%) Hints: 1. Consider 10 monotonic values for each of the variable that are perturbed (i.e. vertical position, velocity, angle of projection). 2. For part m, the results for height and range should go in 3D matrices. 3. For part b, d, f, h, j, I and n all the paths should be plotted in one figure.
P2 (70%). Assuming that horizontal position is 0, expand the program you developed in P1 in a way that it can get a range for initial vertical position or velocity or angle of projection or any combination of these variables and plot possible motion of path considering the range given for each variable. Using this program, do the following calculations/actions: a) Possible height and range, assuming that initial vertical position and velocity are constant (5%) b) Plot possible paths of motion for part a (5%) c) Possible height and range, assuming that angle of projection and velocity are constant (5%) d) Plot possible paths of motion for part c (5%) 2 e) Possible height and range, assuming that angle of projection and vertical position are constant (5%) f) Plot possible paths of motion for part e (5%) g) Possible height and range, assuming that only vertical position is constant (5%) h) Plot possible paths of motion for part g (5%) i) Possible height and range, assuming that only angle of projection is constant (5%) j) Plot possible paths of motion for part I (5%) k) Possible height and range, assuming that only initial velocity is constant (5%) I) Plot possible paths of motion for part k (5%) m) Possible height and range, assuming that all variables are changing (5%). n) Plot possible paths of motion for part m (5%) Hints: 1. Consider 10 monotonic values for each of the variable that are perturbed (i.e. vertical position, velocity, angle of projection). 2. For part m, the results for height and range should go in 3D matrices. 3. For part b, d, f, h, j, I and n all the paths should be plotted in one figure.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
xo=input('Enter the initial horizontal position: \n');
yo=input('\nEnter the initial vertical position: \n');
vo=input('\nEnter the initial velocity: \n');
th=input('\nEnter the angle of projection: \n');
Hmax=vo^2*sind(th)*sind(th)/(2*9.81);
Range=vo^2*sind(2*th)/9.81;
xfinal=xo+Range;
totaltime=2*vo*sind(th)/9.81;
tspan=0:0.001:totaltime;
x=vo.*cosd(th).*tspan+xo;y=-0.5.*9.81.*tspan.^2+vo.*sind(th).*tspan+yo;
plot(x,y,'-b','LineWidth',2.5);
xlabel('x');ylabel('y');title('Trajectory')
fprintf('\n-Maximum height is: %f m .\n\n-The range is : %f m \n\n-The final horizontal position is: %f m ',Hmax,Range,xfinal)
this is my code for the previous question p1.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 3 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY