Editor's Note: This file was selected as MATLAB Central Pick of the Week
This is a simple and straightforward demonstration of a 3D pool game using MATLAB.
There are 6 balls and you can pocket them in any order you want.
Cite As
Husam Aldahiyat (2026). MATLAB Pool (https://nl.mathworks.com/matlabcentral/fileexchange/31556-matlab-pool), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Analytical intersection volume between two spheres, Move Sphere
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
