In MatLab, write the code to make a ball bounce back and forth. The ball bounces in the form of cos^2(θ) where θ goes from 0 to 360 with a length of 1000. The max height of the ball from its center is 28 inches. The x and y axis’s of the plot goes from 0 to 30. The radius of the ball is 1. The while loop is repeat itself 20 times (1 time is the complete back and forth motion) and the ball is to be a color of your choosing.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here