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 (2024). MATLAB Pool (https://www.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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.