In this version the particles are bouncing in a square or circular bounding box with perfectly elastic collisions.
Particles have masses and radius.
It's a very educational script to learn something about particle physics.
You can set a flag and save the trajectories on a file log.
引用格式
Paolo Di Prodi (2026). Piccolo Particle Simulator (https://ww2.mathworks.cn/matlabcentral/fileexchange/29262-piccolo-particle-simulator), MATLAB Central File Exchange. 检索时间: .
致谢
参考作品: Draw a circle.
