Simulation of elastic collision between multiple particles inside a box. Object oriented programming approach. Note that for a large enough time step, dt, particles/bodies can get "stuck" together.
Carlos Souto (2022). Elastic collision - Particles inside a box (https://www.mathworks.com/matlabcentral/fileexchange/76379-elastic-collision-particles-inside-a-box), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!