Question

In: Physics

matlab use matlab to calculate the velocity of the vertical falling ball (v) as a function...

matlab

use matlab to calculate the velocity of the vertical falling ball (v) as a function of time by numerical
derive the following measurement values.(x is height in meters and y is the landing time in milliseconds) Make sure that the speed in the starting point is 0. Then reset
instantaneous velocity as a function of time in a diagram with matlab

x=[0.00 0.20 0.40 0.60 0.80 1.00 1.20 1.50 2.00 2.50 3.00 3.40 3.80 4.20 4.60 5.0]

y=[[0.00 1.620 2.937 3.635 4.217 4.800 5.377 6.013 7.226 8.259 9.219 9.999 10.751 11.455 12.170 12.882]

please write the matlab code with explaination so i can understand it better, thankd in advance!!

Solutions

Expert Solution

This is the Matlab code to calculate velocity of vertical falling ball. I am commenting in this code,so you can easily understand. we use percentage sign for commenting in Matlab.

START

x=[0.00 0.20 0.40 0.60 0.80 1.00 1.20 1.50 2.00 2.50 3.00 3.40 3.80 4.20 4.60 5.0]; % array of height

y=[0.00 1.620 2.937 3.635 4.217 4.800 5.377 6.013 7.226 8.259 9.219 9.999 10.751 11.455 12.170 12.882]; % time


k=y*(.001); % time in second

z= zeros(1,16); % initialize array of velocity

% we divide the both array to get velocity (velocity= distance/ time)

% we start from index 2 because index 1 is undefined
for i=2:16
z = x./k;
end
z(1)=0; % zero speed at starting point
disp(z); % array of velocity

% velocity is in meter/second

END


Related Solutions

Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a...
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a car that accelerates from rest at constant acceleration, a, are given by = a n d = 12 Determine v and d at every second for the first 10 seconds for a car with acceleration of = 15 ft/s2. Your output must have exactly the same format as the template table below. Note that dots have been added to the table below; you can...
IN MATLAB, Create a 8x8 magic matrix. Then use MATLAB built in function, sum, to calculate...
IN MATLAB, Create a 8x8 magic matrix. Then use MATLAB built in function, sum, to calculate the sum of each column. Use subscript notation to find the 6th element and the last element of each magic square. Find the maximum of all the elements in each magic square.
A ball of mass m moving with velocity v⃗ i strikes a vertical wall as shown...
A ball of mass m moving with velocity v⃗ i strikes a vertical wall as shown in (Figure 1). The angle between the ball's initial velocity vector and the wall is θi as shown on the diagram, which depicts the situation as seen from above. The duration of the collision between the ball and the wall is Δt, and this collision is completely elastic. Friction is negligible, so the ball does not start spinning. In this idealized collision, the force...
with a velocity v = 4.6i m/s. It the strikes the six ball, which has an...
with a velocity v = 4.6i m/s. It the strikes the six ball, which has an identical mass and is initially at rest. After the collision the eight ball is deflected by an angle of θ = 26° and the six ball is deflected by an angle of Φ = 35°, as shown in the figure. Part (a) Write an expression for the magnitude of six ball's velocity, in terms of the angles given in the problem and the magnitude...
MATLAB question The range of a projectile launched at velocity V and angle q is R=2...
MATLAB question The range of a projectile launched at velocity V and angle q is R=2 V2 sin(q) cos(q) Find the range if V=20m/s and q=30 degrees (5 pts) If the uncertainty in the launch angle q = 30 +/- 2 degrees, what is the uncertainty of the range What should the accuracy of the launch angle have be to keep the uncertainty of the range to within 5%.
Falling Bodies. In the simplest model of the motion of a falling body, the velocity increases...
Falling Bodies. In the simplest model of the motion of a falling body, the velocity increases in proportion to the increase in the time that the body has been falling. If the velocity is given in feet per second, measurements show the constant of proportionality is approximately 32. a) A ball is falling at a velocity of 40 feet/sec after 1 second. How fast is it falling after 3 seconds? b) Express the change in the ball’s velocity ∆v as...
You will now calculate the initial velocity, v0 , required to launch a ball to a...
You will now calculate the initial velocity, v0 , required to launch a ball to a horizontal distance, d , if the ball is launched purely horizontally from a height h above the top of the table. First draw a diagram of the situation. Clearly label h , d , v0 , and the point you select as your origin. Use 1-D kinematics to determine the time it would take the ball to fall if you simply released it from...
Write a MATLAB script or function that returns the required initial velocity of the ping pong...
Write a MATLAB script or function that returns the required initial velocity of the ping pong ball required to launch it a specified distance. Use projectile motion equations. Keep in mind that the initial firing height will change depending on the proposed catapult design. Primary considerations in the catapult design are accuracy and repeatability as groups will be tasked with hitting the target (cup) repeatedly at distances ranging from 7 to 9 ft. (cup moved in 6 in. increments).
A particle moves along a line with velocity function ?(?) = ?^2 − ?, where v...
A particle moves along a line with velocity function ?(?) = ?^2 − ?, where v is measured in meters per second. a. Find distance traveled by the particle in time interval [0, 6] seconds. b. Find the net displacement. 8. Estimate the area from -1 to 9 under the graph of f(x) = 81 – x^2 using five approximating rectangles and midpoints as sample points.
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT