411 REFERENCE · Wikibooks
MATLAB Programming/Bonus Chapters/MATLAB Easter Eggs
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
MATLAB is one of the very few professional software in the market now that included Easter Eggs in their products.
Here are the few known undocumented demo functions: Just type these commands and have a look for yourself:
All of this Easter Eggs were tested on MATLAB R2020a ( in not alphabetical order)
Have fun playing with the known Easter Eggs~
Note: To view the source code, use edit function followed by command name
Working Easter Eggs
+CommandDescriptionPicture/ExamplescrullerConstruct a cruller by revolving the eccentric ellipse defined by the function XYCRULL.left|200x200px|Cruller RenderdateReturns date as in dd-mmm-yyyy format08-Aug-2022sldemo_fuelsysSimulations of Fault-Tolerant Fuel Control System Dashboardleft|framelessfuntoolA interactive graphing calculator that manipulates functions of a single variable. left|framelesssf_aircraftSimulate the fuel injection system in aircraftleft|framelesssf_newtons_cradleSimulate Newton's cradleframelessteapotdemoA demo that uses the famous Newell teapot to demonstrate MATLAB graphics features.left|framelessteapotGeometry Data generates vertices, faces, and colors that represent the surface of the infamous Utah teapot.graf3d Demonstrate Handle Graphics for surface plots in MATLAB.left|framelessearthmapGlobe to represent the Earth's topographyleft|framelesssomaPrecomputed solutions to Piet Hein's soma cubeleft|framelesssomasols .Generate complete solutions to the soma cubeclockReturns a six element date vector containing the current time and date in decimal form:
[year month day hour minute seconds]1.0e+03 *
2.0220 0.0080 0.0070 0.0230 0.0360 0.0192taxDemo(income)Calculate the tax on income.logoPlot the L-shaped membrane logo with MATLAB(R) lighting.left|200x200px|Matlab Logomembrane Plot a 3-D colored surface of MATLAB(R) logosleft|framelessspyThis function is actually to use to visualize sparsity pattern.
When no input of argument is given, it will generate a image of the dogs.
If typed in version prior to Matlab R2011a, it will show character White Spy from comics Spy vs. Spyleft|framelesslifeThis is MATLAB's simulations of Conway's Game of Life.
Whether cells stay alive, die, or generate new cells depends upon how many of their eight possible neighbors are alive.
By using sparse matrices, the calculations required become astonishingly simple.left|frameless|200x200pxtruss Animation of a bending bridge truss. This demo animates 12 natural bending modes of a two-dimensional truss.left|frameless|200x200pxvibesThis demonstration solves the wave equation for the vibrations of an L-shaped membrane.left|frameless|200x200px|Matlab VibesmakevaseGenerate and plot a surface of revolution. The body-of-revolution corresponding to that line is plotted using the SURFL command.left|frameless|250x250px|MATLAB EASTER EGGS MAKEVASEsf_cdplayerSimulink model simulate the CD player. left|framelessxpbombsShows a game of Minesweeper , There are 13 bombs hidden in the mine field.left|frameless|200x200px|MATLAB Easter EggslorenzPlot the orbit around the Lorenz chaotic attractor.left|framelesstravelThis demo animates the solution of the "Traveling Salesman" problem. (Limited to cities inside USA)
The problem is to form a closed circuit of a number of cities while traveling the shortest total distance along the way.left|framelessfifteen Shows a game of fifteen game puzzles
A sliding puzzle of fifteen squares and sixteen slots.
Solve the puzzle by sequentially lining all fifteen squares up, leaving the last square empty.left|framelessbucky Connectivity graph of the Buckminster Fuller geodesic dome. (shows 60 coordinates)sf_spectrum_analyzerSimulation of measuring the Frequency Response of a Systemleft|frameless|450x450pxcensusShows the extrapolated predicted populations in the United Statesleft|framelesssf_angle_eventsSimulate cranking and power outputleft|frameless|290x290pxex_guide_timerguiExecute graphic updates at regular intervalsleft|framelessquivdemoSuperimpose QUIVER on top of a PCOLOR plot with interpolated shading.left|framelesssf_elevatorSimulations of elevators inside 9 storey buildings.left|framelesspennyShows 3D render of a USA pennyleft|framelessmatlab.ui.internal.toolstrip.Icon.showStandardIconsShows allstandard iconsleft|framelessknotCompute the parametric representation of tube-like surfaces and displays the tube with SURF.left|framelessspharm2This example shows how spherical harmonics, which are spherical versions
of Fourier series, can be used to model the free oscillations of the
Earth.left|framelesseml_asteroidsPlay a game of Asteroidsleft|frameless|Asteroids in MATLABeml_fire Simulations of burning fireleft|framelesssf_tetris2'j', 'l' -- move left and right
'i', 'k' -- rotate left and right
SPACE -- drop
'p' -- pause
'q' -- quitballodeSimulate a demo of a bouncing ball.left|framelessbatonodeSimulate the motion of a thrown baton.left|framelesssf_semantics_hotel_checkinSimulate Hotel Checkinsleft|framelesssf_traffic_lightSimulating traffic lights at intersectionsleft|framelesssf_fitnessSimulate the smartwatch left|framelessklein1This example shows how to generate a Klein bottle.
A Klein bottle is a nonorientable surface in four-dimensional space. It is formed by attaching two Mobius strips along their common boundary.left|framelessxpkleinThis example shows how to display a self-intersecting Klein bottle.
A Klein bottle is a nonorientable surface in four-dimensional space. It is formed by attaching two Mobius strips along their common boundary.left|framelessbrussodeSurface plots of brusselatorleft|framelesswhyRandomly generated answers to life , universe and everythingiburgersode / burgersodeBurgers' equation solved as implicit ODE systemleft|frameless|400x400pxsf_stickslipStick - slip friction simulationsleft|frameless|Sf stickslip - SimulinksfediticonSimulink icons that enable to create basic 16 * 16 icon editorleft|framelessamp1daeStiff differential-algebraic equation (DAE) from electrical circuitsleft|framelesstaylortoolA Taylor Series Approximation calculatorleft|frameless|280x280pxsf_climate_controlSimulate an environmental climate control (Temp and humidity) for a chamberleft|frameless|500x500pxtori4This example shows how to generate four linked unknotted tori by rotating four off-center circles.left|framelessardemoInteractive axes properties demonstrationleft|framelessrlc_guiInteractive GUI showing the relationship between the physical parameters of common RLC circuits and the time and frequency responses of those circuits.
* Low-pass RLC network
* High-pass RLC network
* Band-pass RLC network
* Band-stop RLC networkleft|framelesssf_securityDemonstrations of security system of door, window and mention sensor in a homeleft|frameless|300x300pxsf_serverDisplay random numbers to serve the assigned clientsleft|frameless|320x320pxstepShows a randomly generated stable Transfer Function Modelleft|framelessimagescShows the images of a boy.
To correct it , into correct orientation , type imagesc
colormap(gray(32));
axis ij image off;left|framelesswernerboyThis example shows how to create Boy's surfaceleft|framelesstranspdemoThis example shows how to modify the transparency value for graphics objects to reveal structure that is obscured with opaque objects.left|framelesssf_carSimulate car braking and throttleleft|frameless|500x500pxsf_yoyoSimulate yoyo up and down and the energyleft|frameless|700x700pxsf_boilerSimulation of temperature controller of boilerleft|frameless|600x600pxeml_aero_radarRadar demo to estimate aircraft position using Kalman Filtersleft|frameless|500x500px
Untested Easter Eggs
sf_gui
sf_mandelbrot_fixpt
eomfun - Old
eigshow - Old
imagesAndVideo - Shows an moving images of rocket flying to the space
imagesc(hot) / imagesc(cool) / imagesc(hsv) - ???
old_sf_car
eml_clock
uitabledemo - ???
- ???
sf_tictacflow - SIMULINK project to simulate a game of Tic Tac Toe against AI
-
wrldtrv - Show great circle flight routes around the globe
xpquad - ???
xpsound - ???
Not working
sfbus_demo
sf_moore_traffic_light
sf_bidder
sf_power_window
NOTE: If there are any readers who knows what is the ??? easter eggs represent, you may kindly add in.
References
https://blogs.mathworks.com/steve/2006/10/17/the-story-behind-the-matlab-default-image/
https://web.archive.org/web/20210615225906/https://undocumentedmatlab.com/articles/image-easter-egg
https://web.archive.org/web/20210803075033/https://undocumentedmatlab.com/articles/spy-easter-egg-take-2
https://web.archive.org/web/20210123224206/https://ashanpeiris.blogspot.com/2014/12/matlab-easter-eggs.html
https://www.testingdocs.com/in-built-graphical-demos-in-matlab/