Fortune

Prints a random, sometimes funny fortune at the command line

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/8038-fortune), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Magic in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

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