MATLAB Answers

Simulation of ball bouncing the wall

99 views (last 30 days)
Sebastian on 21 Dec 2020
Edited: Rik on 25 Dec 2020
This question was flagged by Image Analyst


Image Analyst
Image Analyst on 23 Dec 2020
You may not ever get any more answers for any future questions if you erase your questions.
Rik on 25 Dec 2020
Unfortunately for Sebastian Sobieszek it is easy to retrieve the question body from Google cache (the two attached images can't be recovered this easily):
Simulation of ball bouncing the wall
I am a beginner in the Matlab and I need some help.
I need to write a Matlab program that calculates the coefficient of restitution (k) for the given heights: h and h' values and value of v1' (the velocity of ball after hitting the wall). The program is also to show a simulation of the movement of the mass m1, which bounces once from the wall (the wall does not need to be shown in the simulation). The data is presented in the picture.
Thank you in advance for your help.
I can only simulate the pendulum motion in the program like this:
function pendulum
% l=20;
% g=9.81;
for i=1:100
function [dteta] = equation2(t,teta)

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 22 Dec 2020
See my attached bouncing ball demo. Obviously it's not meant to turn in as-is as the answer to your homework problem, but it might give you ideas.


Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by