Calculate a vector of Bell numbers for sets up to length n. Bell numbers are the maximum number of partitions of a set. See the Wikipedia entry for Bell Number.
Belln(8) = [1 1 2 5 15 52 203 877 4140]
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more