File Exchange

image thumbnail

xkcd1930

version 1.4.0.0 (6.62 KB) by Delyle Polet
xkcd.com/1930

0 Downloads

Updated 19 Dec 2017

View Version History

View License

xkcd1930 is a generator of calendar facts, based on the xkcd comic by Randall Monroe: https://xkcd.com/1930

USEAGE:

s = xkcd1930; % Generate a random fact and save as long string s
s = xkcd1930('titletext'); % Same as above, but includes the title text
s = xkcd1930('wrap'); % The string "s" fits on the terminal display

EXAMPLE:

s = xkcd1930('titletext','wrap');
disp(s)

xkcd1930 includes a modified version of "wraptext", by Chad Greene (2015). Full function available at: https://www.mathworks.com/matlabcentral/fileexchange/53176-wraptext

Cite As

Delyle Polet (2021). xkcd1930 (https://www.mathworks.com/matlabcentral/fileexchange/65453-xkcd1930), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!