5.0

5.0 | 1 rating Rate this file 8 downloads (last 30 days) File Size: 1.95 MB File ID: #8038

Fortune

by Robert M. Flight

 

14 Jul 2005 (Updated 18 Jul 2005)

Code covered by the BSD License  

Prints a random, sometimes funny fortune at the command line

Download Now | Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements Has only been tested using Matlab 7.0 with SP2, but I see no reason it shouldn't work on any other.
Zip File Content  
Other Files
art,
asciiart,
calvin,
chalkboard,
chapterhouse_dune,
children_of_dune,
clean_fortunes.txt,
computers,
cookie,
definitions,
drugs,
dune,
dune_messiah,
education,
ethnic,
familyguy,
fgump,
food,
fort_import.asv,
fort_import.m,
fortune.asv,
fortune.m,
fortunes,
futurama,
god_emperor,
goedel,
heretics_of_dune,
hitchhiker,
homer,
house_atreides,
house_harkonnen,
humorists,
humorix_misc,
humorix_stories,
initial.asv,
initial.m,
kernelnewbies,
kids,
law,
linuxcookie,
literature,
love,
magic,
medicine,
men_women,
miscellaneous,
news,
off/art,
off/astrology,
off/atheism,
off/blackhumor,
off/cookie,
off/debian,
off/definitions,
off/drugs,
off/ethnic,
off/fortunes,
off/hphobia,
off/limerick,
off/linux,
off/misandry,
off/miscellaneous,
off/misogyny,
off/off_fortunes.txt,
off/politics,
off/privates,
off/racism,
off/religion,
off/riddles,
off/sex,
off/songspoems,
off/vulgarity,
off/zippy,
oneliners,
osfortune,
people,
pets,
platitudes,
politics,
riddles,
science,
songs_poems,
sports,
startrek,
starwars,
tao,
translate_me,
wisdom,
work,
xfiles,
zippy
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
02 Jun 2008 Tom Howe  
Please login to add a comment or rating.
Updates
18 Jul 2005

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

Tag Activity for this File
Tag Applied By Date/Time
games Robert M. Flight 22 Oct 2008 07:53:30
linux fortune Robert M. Flight 22 Oct 2008 07:53:30
fortune cookie Robert M. Flight 22 Oct 2008 07:53:30
wisdom Robert M. Flight 22 Oct 2008 07:53:30
game Robert M. Flight 22 Oct 2008 07:53:30
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com