xkcd1930

版本 1.4.0.0 (6.6 KB) 作者: Delyle Polet
xkcd.com/1930
11.0 次下载
更新时间 2017/12/19

查看许可证

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

引用格式

Delyle Polet (2024). xkcd1930 (https://www.mathworks.com/matlabcentral/fileexchange/65453-xkcd1930), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.4.0.0

Now each random fact is equally likely. Fixed some capitalization issues.
Updated title and description (again)

1.3.0.0

Fixed a typo, removed useless input validation in wraptext

1.2.0.0

Just updated the description. That's it.

1.1.0.0

Just changed the title in the submission. That's it

1.0.0.0