10 descargas
Actualizado 19 Dec 2017

Ver licencia

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


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


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

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

Citar como

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

Compatibilidad con la versión de MATLAB
Se creó con R2016b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Más información sobre Convert Image Type en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión

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

Fixed a typo, removed useless input validation in wraptext

Just updated the description. That's it.

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