Annoy-a-tron

版本 1.0.0.0 (1.9 KB) 作者: Steve Hoelzer
Annoy and confound fellow MATLAB users.
340.0 次下载
更新时间 2011/3/31

查看许可证

Slowly drive MATLAB users insane by doing something annoying at random intervals. Customize to deploy your own personal brand of evil.

A few ideas:
>> beep on, beep % make noise
>> disp('Why?'), why % display nonsense
>> disp(datestr(now)) % display date and time
>> calendar % display calendar
>> figure % open a figure
>> fprintf('\n') % insert blank line
>> fprintf('>') % growing prompt
>> disp('<<') % reverse prompt
>> disp('>>>') % triple prompt
>> fprintf(2, '>>\n'); % prompt in error message color
>> exit % exit Matlab (truly, truly evil)

To run this function automatically when Matlab starts, call annoyatron() from startup.m. See 'startup' in Matlab's help for more info.

Inspired by the Annoy-a-tron. www.thinkgeek.com

引用格式

Steve Hoelzer (2024). Annoy-a-tron (https://www.mathworks.com/matlabcentral/fileexchange/30925-annoy-a-tron), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Startup and Shutdown 的更多信息
标签 添加标签

Community Treasure Hunt

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

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