Bean Machine
Version 1.0.0.0 (1.8 KB) by
Michael
Bean Machine Simulation (a.k.a. Plinko or binomial distribution)
Also known as Plinko, this script simulates balls bouncing left and right, with equal probability, as they travel downwards. At the bottom, they are collected into bins with the bar chart illustrating the number of balls in a particular bin.
This is a fun example of the binomial distribution, which can clearly be seen forming in the bar chart.
Cite As
Michael (2024). Bean Machine (https://www.mathworks.com/matlabcentral/fileexchange/32420-bean-machine), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Bar Plots in Help Center and MATLAB Answers
Tags
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |