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 (2026). Bean Machine (https://uk.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
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
