For the 2009 Easter holiday, I thought I’d post a Matlab Easter egg, which I found on http://www.eeggs.com/items/47352.html: spy is a built-in stock Matlab function for visualizing sparse matrices. If you run spy with no input arguments, it uses an undocumented default built-in sparse matrix that generates one of the spies in the famous Spy vs. Spy comics series:
spy;

Related posts:
- Image Easter egg The default image presented by Matlab's image function has a very interesting undocumented story....
- Plot LimInclude properties The plot objects' XLimInclude, YLimInclude, ZLimInclude, ALimInclude and CLimInclude properties are an important feature, that has both functional and performance implications....
- Performance: scatter vs. line In many circumstances, the line function can generate visually-identical plots as the scatter function, much faster...
- tic / toc – undocumented option Matlab's built-in tic/toc functions have an undocumented option enabling multiple nested clockings...
- ismembc – undocumented helper function Matlab has several undocumented internal helper functions that can be useful on their own in some cases. This post presents the ismembc function....
- Modifying default toolbar/menubar actions The default Matlab figure toolbar and menu actions can easily be modified using simple pure-Matlab code. This article explains how....
Tags: easter egg, pure Matlab, spy, Undocumented feature
Categories: Low risk of breaking in future versions, Stock Matlab function, Undocumented feature
This entry was posted
on Saturday, April 11th, 2009 at 11:24 am PST
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.

’spy’ with no arguments was one of the first MATLAB commands I learned
another one was ‘why’ with no arguments, maybe you consider that an Easter egg as well…
@Naor – the difference is that why with no args is documented, so it’s fun but not a real Easter egg.
Spy with no args is not documented.
[...] Last year I presented the Matlab Spy Easter egg for the 2009 Easter holiday. This year, slightly late, I present another Easter egg [...]