Have some fun with Matlab today. Here are some easter eggs for the program (it may depend on your version, but all of these worked on mine).

Open the Matlab command window and type one of the following to get a nice surprise:

>> image

This one gives an image of a boy.

>> spy

This one gives the classic spy vs spy picture.

>> life

Simulation of Conway’s Game of Life.

>> why

Alternatively type why(n), for some number n.

Repeat.

>> penny

American penny.

>> toilet

Simulation of a working toilet, haha.

Also try “shower”.

also:

load handel

sound(y, Fs)

29 1

Just a heads up that the spy is now replaced with a dog image and the toilet seems to be missing in MATLAB 2011

13 2

@ Emile Cantin

I took the sound file and put it into an iterative loop, opened the file on a computer in my class, switched user so the song still played but no one can get in, and the song played the entire class.

21 2

Thanks for that handel one, Emile. I’ll insert into the my office mate’s code when they are not around!

11 0

lol… and thnx fr this idea of inserting the code in mate’s prog. ❗

😛

3 0

nice…

0 0