Balls Collision

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 (2024). Balls Collision (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Video games in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes