image thumbnail


version (6.3 KB) by Cleve Moler
Play individual hands of the card game, or simulate a session.


Updated 1 Sep 2016

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Blackjack is now also descibed in a Cleve's Corner article in MathWorks News and Notes, .
One of the less mathematical programs from an electronic textbook, "Numerical Computing with MATLAB®", by Cleve Moler. The book, and more programs, are available from A hardcopy edition of the book is available from SIAM.

Cite As

Cleve Moler (2022). Blackjack (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Blackjack computational kernel

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!