Write a script for Matlab that calculates the position of a ball being dropped from a height of 10 meters with an initial velocity of 0 as a function of time. Havethe script accept the value of time from the user using the input function. Then display the result in the command window.
Now the position of the ball as a function of time is known calculate the position of the ball for a set of time points using a ‘for loop.’ Start your time vectorat time 0 (the initial time). Continue your time points until the ball hits the ground (at height = 0).
Lastly add a plot and figure inside the ‘for loop’ and plot the position of the ball as the for loop runs.
This Homework Help Question: "Write a script for Matlab that calculates the position of a ball being dropped from a height of..." No answers yet.
We need 3 more requests to produce the answer to this homework help question. Share with your friends to get the answer faster!
0 /3 have requested the answer to this homework help question.
Write a script for Matlab that calculates the position of a ball being dropped from a height of...
First write a script in Matlab that plots the position of a ball from its launch until it hits the ground.Then turn this program into a function thatcalculates any set of time points and a set of positions based on the angle of trajectory and magnitude of initial velocity taken from the user.
Please show clear and detailed solution [4] Write a Matlab script to create a menu of following items and then display the output. Hint: Use Switch Case (16 Points) Menu should have five options: Sum, Multi, Subplot, All in One, and Exit 1. Sum of 1 to 10 numbers Hint: Output on Command Window 2. Multiplication of 1 to 10 numbers Hint: Output on Command Window 3. Sine and Cosine Subplot (Use Two Rows and One Column) 4. Sine and...
read instructions carefully please matlab only Write a MATLAB function for a BMI calculator that receives the inputs for body weight (lbs)and height (ft) from the user's program, calculates the BMI using the equation below, displays the BMI category, and outputs the BMI value tothe user's program W (kg) h2 (m2) BMI Display Normal if 18.5 s BMI 25 Display Overweight if 25 s BMI <30 Display Obese if BMI 2 30 Else display underweight So you will create two...
please show work! 9. A 2-kg ball is dropped out of a w is dropped out of a window from a height of 12 meters (Point A). It hits the grow and bounces back up to a height of 8 meters above the ground (Point). a. What is the potential energy of the ball at points A and C b. What is the velocity of the ball just before and just after it hits the ground (points B and B')?...
can someone please help wtih this curve fitting in mathlab 2. Curve Fitting Some tests are run with a ball of a fixed mass dropped from a known height onto a spring that is compressed a measured amount. The data collected from several test runs is contained in a text file CompressionVersusHeight.txt which is available on CatCourses. Note that the data file can have any number of data points and any script that reads it should allow for that. A...
ME208 Pessia Homework 10 (30 Points)- Due 5/9 by 11:59 PM Write a MATLAB function for a BMI calculator that receives the inputs for body weight (Ibs) and height (ft) from the user's program, calculates the 8MI using the equation below, displays the BMI category, and outputs the 8MI value to the user's program. BMI = w(kg) Display Normal if 18.5 s BMI<25 Display Overweight if 25 s BMI<30 Display Obese if BMI 230 Else display underweight (m2) So you...
A hard rubber ball is dropped from a moving van with a height of 5 metres. The ball rises to 80% of the previous height after each bounce.a) determine the total vertical distance the ball has traveled when it strikes the ground the eighth time.b) estimate the total vertical distance the ball travels before it comes to rest.It's a geometric series, I know this much. My problem comes from the fact that... the initial 5 metres in an anomaly. After...
CS 221 Assignment 3 Spring 2011In Chapter 1, we studied the problem of a projectile being launched with an initial velocity and launch angle. The equations for the height and horizontal location asfunctions of time are given in Problem 4.8 of Chapter 4.Write a MATLAB program to calculate and store in arrays the height (h) and horizontal distance (x) in feet for time increments of 0.1 seconds. Use a value for of 32.2for the gravitational constant. Continue to make the...
Accurate measurements reveal that the gravitational force of Planet Janet is decreasing with time according to the formulag(t) = g_0 - C twhere g_0 and C are positive constants. Find a formula for the position as a function of time of an object dropped from rest at a height h at time t = 0. What happensto the object at large times? Does this make sense?
CS 221 Assignment 3 Spring 2011Write a MATLAB program to calculate and store in arrays the height (h) and horizontal distance (x) in feet for timeincrements of 0.1 seconds. Use a value for of 32.2 for the gravitational constant. Continue to make the calculations until the projectile hits the ground. Usethe plot command to create three graphs shown below.ask the user for the initial velocity and launch angle:Enter projectile velocity: 200Enter launch angle: 20The three graphs are:height vs. timedistance vs....