Fortune
Version 1.0.0.0 (1.95 MB) by
Robert M. Flight
Prints a random, sometimes funny fortune at the command line
This is my implementation of the popular Unix/Linux program Fortune in MATLAB. To install it, simply unzip the file archive to a folder, and run "initial.m", this will create the MAT-files containing the fortunes. After that type "fortune" at the command line for a random clean fortune, use the "off" flags for an offensive fortune, and read the readme or header of the file for more information.
Cite As
Robert M. Flight (2026). Fortune (https://nl.mathworks.com/matlabcentral/fileexchange/8038-fortune), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14SP1
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | fixed inital.m to clear variable 'txtfil', keeps fortune from crashing during use. |
