Question

Could somebody help me with this question for the coding on MATLAB? Thank you

Projectile Motion The distance a projectile travels when fired at an angle Θ is a function of time and can be divided into horizontal distance, dVotcos(O) and the vertical distance is dy Vot sin(0)-0.5gt2. Suppose a projectile is fired at an initial velocity of 100 m/s and a launch angle of /4 radians (45°). Use ezplot to graph horizontal distance on the x -axis and vertical distance on the y -axis for times from 0 to 20 seconds. V(t) 1 h(t)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

v0=100;
theta=pi/4;
g=9.81;

syms t
dx=v0*t*cos(theta);
dy=v0*t*sin(theta)-0.5*g*t*t;

ezplot(dx,dy,[0,20])

MATLAB R2017a Search Documentation Log In Compare Go To▼ Comment ge-ese Breakpoints Run Run and ES Advance ▼ New Open Save Figure 1 Indent E Print Find ▼ Advance File Edit View Insert Tools Desktop Window Help Current Folder Editor-GAMATLAB\R2017a\bin\UntitledT9.m x-50 21/2 t y = 50 2112 t-(981 t2)/200 400 田山html ㄧ田ぷm3iregistry -v0-100 2-theta-pi/4; 3-g-9.81: profile-results registry 200 田山util 田山win64 5-yms t 6- dx=vo*t* cos(theta); 7-dy-vo*t*sin (theta)-0.5*g*t*t: mbuild.bat 9ezplot (dx, dy, [o,20]) mex.bat mexext.bat 200 worker.bat lena.bmp 400 Details Works Name- 600 Command Window 200 600 1000 1200 00 3.1416 1x1 sym x1 sym 9.8100 1x1 sym 0.7854 100 400 800 >> pi dy 3.1416 Activate Windows Go to PC settings to activate Windows Untitled79 Ln 9 Col 19

Add a comment
Know the answer?
Add Answer to:
Could somebody help me with this question for the coding on MATLAB? Thank you Projectile Motion...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • These questions are to be answered using MATLAB. I only need #3 answered, but #1 provides...

    These questions are to be answered using MATLAB. I only need #3 answered, but #1 provides information (like initial velocity, etc.) required for the questions. I think I have it done, but I'd like to see if there are other ways to use MATLAB for this question. PROJECTILES The distance a projectile travels when fired at an angle 8 is a function of time and can be divided into horizontal and vertical distances. Horizontal (1) = 1.V.cos(0) Vertical(t) = 1•...

  • MATLAB, please provide code script Objective: Create a function file that animates projectile motion defined by...

    MATLAB, please provide code script Objective: Create a function file that animates projectile motion defined by the following equations in a subplot. Your function should accept user inputs of launch speed and launch angle. The output of your function will be a top subplot that displays height (y) as a function of x. The bottom subplot should display the vertical velocity while the projectile is in motion. A video of what your animation should look like is posted with this...

  • MATLAB Write a user defined function for a projectile motion. If a ball is launched from...

    MATLAB Write a user defined function for a projectile motion. If a ball is launched from initial position(0,0) with a velocity v0 at angle θ, determine your horizontal and vertical position. Please plot x vs. t, y vs. t and y vs. x.

  • Phys2425 LAB REPORT FORM PROJECTILE MOTION Data Table 1: Projectile Fired Horizontally Hi m. L.OOS Trail...

    Phys2425 LAB REPORT FORM PROJECTILE MOTION Data Table 1: Projectile Fired Horizontally Hi m. L.OOS Trail i RIi (m) 2 4 average Q.423 2.438 2435 2. 41 2,434 JAR1 = Rli-Riay .Ol ARI 4.00 SS 004 .00 1 007 RI Riav AR1 =2.434 .0058m m/s Vo= Data Table 2: Projectile Fired on an Incline 45 H2 = Incline Angle 0- Trail i 2 average R2ay R2i (m) 4.103 4.1S7 4. I654, |6|4. |05 JA R2i = R2i- R2av AR2 ○11で.007...

  • fired at an angle of 45° with the horizontal at an initial speed of 130 feet...

    fired at an angle of 45° with the horizontal at an initial speed of 130 feet per second. What are the components when the projectile is at its maximum height? Use the equations below to find the tangential and normal components of acceleration for a projectile h r(e)= (vot cos(0)i + vot sin(e)- 162)i + v(t) Vo cos(6e)i + (vo sin(0) -32t)j a(t) -32j (Vo cos(0))i + (vo sin(0) - 32t)j vo2 Vw(cos) T(t) + (vo sin(0) 32t)2 (Vo sin(e)-...

  • EXPLORE A projectile is launched with a launch angle of 30° with respect to the horizontal...

    EXPLORE A projectile is launched with a launch angle of 30° with respect to the horizontal direction and with an initial speed of 40 m/s. (A) How do the vertical and horizontal components of the projectile's velocity vary with time? (B) How long does it remain in flight? (C) For a given launch speed, what launch angle produces the longest time of flight? CONCEPTUALIZE Consider the projectile to be a point mass that starts with an initial velocity, upward and...

  • Need help with this question thank you! 10. A projectile is launched at an angle of...

    Need help with this question thank you! 10. A projectile is launched at an angle of 17.0° above the horizontal. What is its initial speed if it hits a target that is located a horizontal distance of 155 m from the launch point and 14.5 m below the launch level? m/s

  • Write a MATLAB Graphical User Interface (GUI) to simulate and plot the projectile motion – the...

    Write a MATLAB Graphical User Interface (GUI) to simulate and plot the projectile motion – the motion of an object projected into the air at an angle. The object flies in the air until the projectile returns to the horizontal axis (x-axis), where y=0. This MATLAB program should allow the user to try to hit a 2-m diameter target on the x-axis (y=0) by varying conditions, including the lunch direction, the speed of the lunch, the projectile’s size, and the...

  • Using MATLAB to plot the trajectory of a projectile: Consider a cannon launching a cannonball at...

    Using MATLAB to plot the trajectory of a projectile: Consider a cannon launching a cannonball at initial velocity, v, towards a wall. With an elevation of launch angle, θ, distance to wall, D, and wall height, h. Write a MATLAB function to plot the trajectory of the cannonball and return information in the following form: >> [outcome, impact] = Q3 STNO(v,theta,D,h) where v, theta, D and h are the launch velocity (m/s), launch angle (radians), distance to wall (m) and...

  • Phys2425 Bobbs LAB REPORT FORM PROJECTILE MOTION Data Table 1: Projectile Fired Horizontally average Traili Rii...

    Phys2425 Bobbs LAB REPORT FORM PROJECTILE MOTION Data Table 1: Projectile Fired Horizontally average Traili Rii (m) 250 Rlav 2.43 ARI 257 216 2.40 2y R-Rel 20.2 Data Table 2: Projectile Fired on an Incline Incline Angle 0 Trail i 2 Re()3442 46396 34 6.003 | 0.007 |0007|0.002 |-o,ood AR2 QUESTIONS I. Show the calculation of the expected horizontal distance R2 for the incline firing experiment. Use the value of the launch velocity, vo, from Data Table 1. What is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT