このページは公開されています。
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
| Command | Description | Picture/Examples |
|---|---|---|
| cruller | Construct a cruller by revolving the eccentric ellipse defined by the function XYCRULL. |
Cruller Render (Image: MrAlanKoh, CC BY-SA 4.0) |
| date | Returns date as in dd-mmm-yyyy format | 08-Aug-2022 |
| sldemo_fuelsys | Simulations of Fault-Tolerant Fuel Control System Dashboard |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| funtool | A interactive graphing calculator that manipulates functions of a single variable. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_aircraft | Simulate the fuel injection system in aircraft |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_newtons_cradle | Simulate Newton's cradle |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| teapotdemo | A demo that uses the famous Newell teapot to demonstrate MATLAB graphics features. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| teapotGeometry | Data generates vertices, faces, and colors that represent the surface of the infamous Utah teapot. | |
| graf3d | Demonstrate Handle Graphics for surface plots in MATLAB. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| earthmap | Globe to represent the Earth's topography |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| soma | Precomputed solutions to Piet Hein's soma cube |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| somasols . | Generate complete solutions to the soma cube | |
| clock | Returns 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.0192 |
| taxDemo (income) | Calculate the tax on income. | |
| logo | Plot the L-shaped membrane logo with MATLAB(R) lighting. | 
Matlab Logo (Image: Jarekt , LukeTriton, Public domain) |
| membrane | Plot a 3-D colored surface of MATLAB(R) logos |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| spy | This 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. Spy |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| life | This 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. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| truss | Animation of a bending bridge truss. This demo animates 12 natural bending modes of a two-dimensional truss. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| vibes | This demonstration solves the wave equation for the vibrations of an L-shaped membrane. |
Matlab Vibes (Image: MrAlanKoh, CC BY-SA 4.0) |
| makevase | Generate and plot a surface of revolution. The body-of-revolution corresponding to that line is plotted using the SURFL command. |
MATLAB EASTER EGGS MAKEVASE (Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_cdplayer | Simulink model simulate the CD player. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| xpbombs | Shows a game of Minesweeper , There are 13 bombs hidden in the mine field. |
MATLAB Easter Eggs (Image: MrAlanKoh, CC BY-SA 4.0) |
| lorenz | Plot the orbit around the Lorenz chaotic attractor. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| travel | This 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. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| fifteen | 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. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| bucky | Connectivity graph of the Buckminster Fuller geodesic dome. (shows 60 coordinates) | |
| sf_spectrum_analyzer | Simulation of measuring the Frequency Response of a System |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| census | Shows the extrapolated predicted populations in the United States |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_angle_events | Simulate cranking and power output |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| ex_guide_timergui | Execute graphic updates at regular intervals |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| quivdemo | Superimpose QUIVER on top of a PCOLOR plot with interpolated shading. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_elevator | Simulations of elevators inside 9 storey buildings. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| penny | Shows 3D render of a USA penny |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| matlab.ui.internal.toolstrip.Icon.showStandardIcons | Shows allstandard icons |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| knot | Compute the parametric representation of tube-like surfaces and displays the tube with SURF. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| spharm2 | This example shows how spherical harmonics, which are spherical versions
of Fourier series, can be used to model the free oscillations of the
Earth. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| eml_asteroids | Play a game of Asteroids |
Asteroids in MATLAB (Image: MrAlanKoh, CC BY-SA 4.0) |
| eml_fire | Simulations of burning fire |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_tetris2 | 'j', 'l' -- move left and right
'i', 'k' -- rotate left and right
SPACE -- drop
'p' -- pause
'q' -- quit | |
| ballode | Simulate a demo of a bouncing ball. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| batonode | Simulate the motion of a thrown baton. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_semantics_hotel_checkin | Simulate Hotel Checkins |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_traffic_light | Simulating traffic lights at intersections |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_fitness | Simulate the smartwatch |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| klein1 | This 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. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| xpklein | This 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. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| brussode | Surface plots of brusselator |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| why | Randomly generated answers to life , universe and everything | |
| iburgersode / burgersode | Burgers' equation solved as implicit ODE system |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_stickslip | Stick - slip friction simulations |
Sf stickslip - Simulink (Image: MrAlanKoh, CC BY-SA 4.0) |
| sfediticon | Simulink icons that enable to create basic 16 * 16 icon editor |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| amp1dae | Stiff differential-algebraic equation (DAE) from electrical circuits |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| taylortool | A Taylor Series Approximation calculator |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_climate_control | Simulate an environmental climate control (Temp and humidity) for a chamber |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| tori4 | This example shows how to generate four linked unknotted tori by rotating four off-center circles. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| ardemo | Interactive axes properties demonstration |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| rlc_gui | Interactive 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 network |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_security | Demonstrations of security system of door, window and mention sensor in a home |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_server | Display random numbers to serve the assigned clients |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| step | Shows a randomly generated stable Transfer Function Model |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| imagesc | Shows the images of a boy.
To correct it , into correct orientation , type imagesc
colormap ( gray ( 32 ));
axis ij image off ; |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| wernerboy | This example shows how to create Boy's surface |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| transpdemo | This example shows how to modify the transparency value for graphics objects to reveal structure that is obscured with opaque objects. |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_car | Simulate car braking and throttle |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_yoyo | Simulate yoyo up and down and the energy |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| sf_boiler | Simulation of temperature controller of boiler |
(Image: MrAlanKoh, CC BY-SA 4.0) |
| eml_aero_radar | Radar demo to estimate aircraft position using Kalman Filters | 
(Image: MrAlanKoh, CC BY-SA 4.0) |
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
[1]
[2]
[3]
[4]
[5]
- ↑ 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/
Where this page came from
This page was imported from Wikibooks. From “MATLAB Programming” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.
Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.
このページを含むマガジンMATLAB Programming
ライセンス: CC BY-SA 4.0 · 出典 en.wikibooks.org
コメント




