MATLAB Tricks with code
Put the "SPY" command in command window, it will create a spy image like this :
2. The PENNY
This gives a 3D version of a penny.
Just enter "penny" command
3. MATLAB PROGRESS BAR
Copy -paste this code to get a progress bar
4. Why Command
you will get "Stupid Question!"
5. SURF Command
try surf(membrane) to get the below image.
6. "earthmap" command:
This command will fetch you a 3-D shape, that is rotatable ( Just use the hand tool ).
This example shows how to construct a cruller by revolving the eccentric ellipse defined by the function XYCRULL.
10. "xpsound" command:
Demonstrate MATLAB's sound capability.
You may view the audio graphically in three ways:
# The time sequence is a 2D plot of the data as a function of time.
# In the PSD form.
# In the spectrogram view.
11. "xpbombs" command:
Play the minesweeper game in MATLAB's style. There are 13 bombs hidden in the mine field. Try to flag them and uncover all of the other spaces without getting blown up. In each non-bomb square is printed the number of adjacent squares which contain bombs. In our case we lost, try to win!
12. "image" command:
We might have used many image related commands, like imread, imshow etc. But have you tried "image" command? Yes, just type in image in the command window of MATLAB without any parameter, & you will see an inverted child's image.
No comments