Fortune

Prints a random, sometimes funny fortune at the command line
1.2K Downloads
Updated 18 Jul 2005

View License

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 (2024). Fortune (https://www.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 Linux
Categories
Find more on Magic in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

fixed inital.m to clear variable 'txtfil', keeps fortune from crashing during use.