Count collisions in an idealized block system - MATLAB Cody - MATLAB Central

Problem 58778. Count collisions in an idealized block system

Difficulty:Rate
Two blocks, which have masses and , slide along a frictionless, semi-infinite track bounded by a stationary wall. Initially block 2 is not moving, and block 1 moves to the left with speed . All of the collisions are elastic.
Write a function to count the collisions between the two blocks and block 2 and the wall. For example, if the blocks each have mass of 1 kg and block 1 initially moves to the left at 0.5 m/s, there will be three collisions: the initial collision, a collision between block 2 and the wall, and a final collision between the blocks.

Solution Stats

70.0% Correct | 30.0% Incorrect
Last Solution submitted on Feb 29, 2024

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
3
5

Problem Recent Solvers6

Suggested Problems

More from this Author291

Community Treasure Hunt

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

Start Hunting!
Go to top of page