Question

Height of an object (h) which is thrown vertically with the speed of V0 at each...

Height of an object (h) which is thrown vertically with the speed of V0 at each time (t) can be calculated by the following formula:

Height of an object (h) which is thrown vertically

In a scripts create an anonymous function to calculate h at each time t for the value of g=9.81 m/s2 and V0 = 65 m/s. Also plot the height versus time and use fzero to determine the time when the object hits the ground.

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

Answer: Heightfun.m function [h]= heightfun (time) vo 65.0 g 9.81; h-vo*time-0.5*g*ti end hits.m clear disp Grount hit valueCommand Window >> heightfun (6) 213.4200 now execute hits.m Command Window Grount hit value hits val- 13.2518Figure 1 File Edit View Insert Tools Desktop Window Help 自ㄐ calculate height at each time 250 200 150 100 50 ..「 「 ㄒㄧ ㄒㄧ ㄒㄧㄧ-copyable code:

Heightfun.m

function [h]= heightfun(time)

vo=65.0;

g=9.81;

h=vo*time-0.5*g*time.^2;

end

hits.m

clear

clc

disp('Grount hit value')

n=1000;

time=linspace(0,11,n);

h=heightfun(time);

plot(time,h),xlabel('time t (sec)'),ylabel ('height(m)')

title(' calculate height at each time'),grid on

hits_val=fzero(@heightfun,10)

Add a comment
Know the answer?
Add Answer to:
Height of an object (h) which is thrown vertically with the speed of V0 at each...
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
  • 2. (a) An object thrown vertically with a speed vo reaches a height h at time...

    2. (a) An object thrown vertically with a speed vo reaches a height h at time t, where: he vot tgt Write a MATLAB program with a user defined function that computes the time required to reach a specified height h, for a given value of vo. The function's input should be h, Vo, and g. Test your function for the case where h 100 m, Vo-50 m/s and g9,81 m/s2 by free hand. Write the MATLAB command how you...

  • if an object is thrown vertically upward with an initial velocity of v, from an original...

    if an object is thrown vertically upward with an initial velocity of v, from an original position of s, the height h at any time t is given by: h = -16t^2 + vt + s If an object is thrown vertically upward with an initial velocity of v, from an original position of s, the height h at any time t is given by h16t2 +vt+s (where h and s are in ft, t is in seconds and v...

  • A red ball is thrown down with an initial speed of 1.3 m/s from a height...

    A red ball is thrown down with an initial speed of 1.3 m/s from a height of 26 meters above the ground. Then, 0.4 seconds after the red ball is thrown, a blue ball is thrown upward with an initial speed of 23.9 m/s, from a height of 1 meters above the ground. The force of gravity due to the earth results in the balls each having a constant downward acceleration of 9.81 m/s2. What is the speed of the...

  • A red ball is thrown down with an initial speed of 1.2 m/s from a height...

    A red ball is thrown down with an initial speed of 1.2 m/s from a height of 26 meters above the ground. Then, 0.4 seconds after the red ball is thrown, a blue ball is thrown upward with an initial speed of 23.8 m/s, from a height of 1 meters above the ground. The force of gravity due to the earth results in the balls each having a constant downward acceleration of 9.81 m/s2. 1) What is the speed of...

  • 2. (aj An object thrown vertically with a speed vo reaches a height h at time t,where with a user defined function that computes the time required to reach a Write a MATLAB program specified heig...

    2. (aj An object thrown vertically with a speed vo reaches a height h at time t,where with a user defined function that computes the time required to reach a Write a MATLAB program specified height h, for a given value of vo. The function's imput should be h, we and g Testverurtrott" for the case where h-100 m, vee50 m/s and g-9,82 /by free hand. Write the MATLAB you will run/call the function with these given values (b) Write...

  • A ball is thrown vertically upwards at a speed of 15m/s at the edge of a...

    A ball is thrown vertically upwards at a speed of 15m/s at the edge of a 20m deep well. The ball is released at a height of 2m above ground level. How high does the ball rise above ground level? If the ball on its downward path falls down the well, how many seconds elapse between releasing the ball and it striking the bottom of the well? Assume that the downward acceleration is 9.81 m/s2 .

  • An object is projected with initial speed v0 from the edge of the roof of a...

    An object is projected with initial speed v0 from the edge of the roof of a building that has height H. The initial velocity of the object makes an angle α0 with the horizontal. Neglect air resistance. A) If α0 is 90∘, so that the object is thrown straight up (but misses the roof on the way down), what is the speed v of the object just before it strikes the ground? Express your answer in terms of some or...

  • Answer in units of m/s. Fo tic av 012 10.0 points An object is thrown vertically...

    Answer in units of m/s. Fo tic av 012 10.0 points An object is thrown vertically up and attains an upward velocity of 50 m/s when it reaches one fourth of its maximum height above its launch point. What was the initial speed of the object? The acceleration of gravity is 9.8 m/s. Answer in units of m/s 013 10.0 points A rock is thrown downward from an unknown height above the ground with an initial speed of 13 m/s....

  • A ball is thrown vertically upward with an initial position of So = 10 m. The...

    A ball is thrown vertically upward with an initial position of So = 10 m. The maximum height reached by the ball is 30 m. a. Determine the initial velocity of the ball. b. Determine the time of flight when it returns to its initial position. c. Determine the time of flight when it hits the ground. d. Determine the velocity just before it hits the ground. Check your answer using a different equation. e. Plot v(t) and s(t) from...

  • A particle is uncharged and is thrown vertically upward from ground level with a speed of...

    A particle is uncharged and is thrown vertically upward from ground level with a speed of 26.5 m/s. As a result, it attains a maximum height h. The particle is then given a positive charge +q and reaches the same maximum height h when thrown vertically upward with a speed of 29.9 m/s. The electric potential at the height h exceeds the electric potential at ground level. Finally, the particle is given a negative charge -q. Ignoring air resistance, determine...

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
ADVERTISEMENT