File Exchange

image thumbnail

Balls Collision

version (1.8 KB) by Nikesh Bajaj
Two balls with initialized with random velocity moves. It stops only when they collide.


Updated 28 Jan 2013

View License

Can be useful for physics simulation and for tricky questions like "with so and so velocity when balls are going to collide?"

Cite As

Nikesh Bajaj (2020). Balls Collision (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)


Why are the balls gaining energy after collision with wall ? In real physics they should not.


cool :-)

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux