Spy Easter egg

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:

Matlab spy Easter egg

Bookmark and Share

Related posts:

  1. Performance: scatter vs. line In many circumstances, the line function can generate visually-identical plots as the scatter function, much faster...
  2. tic / toc - undocumented option Matlab's built-in tic/toc functions have an undocumented option enabling multiple nested clockings...
  3. cellfun - undocumented performance boost Matlab's built-in cellfun function has an undocumented option to significantly improve performance in some cases....
  4. uiundo - Matlab’s undocumented undo/redo manager The built-in uiundo function provides easy yet undocumented access to Matlab's powerful undo/redo functionality. This article explains its usage....
  5. Setting desktop tab completions The Matlab desktop's Command-Window tab-completion can be customized for user-defined functions...
  6. 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....

Tags: , ,

PoorSo-soHelpfulVery helpfulExcellent! (No Ratings Yet)
Loading ... Loading ...
Bookmark and Share Print Print

2 Responses to “Spy Easter egg”

  1. Naor Naor says:

    ’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…

  2. Yair Altman Yair Altman says:

    @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.

Leave a Reply


Wrap code fragments inside <pre lang="matlab"> tags, like this:

   <pre lang="matlab">
   a = magic(3);
   sum(a)
   </pre>