Interesting MATLAB Commands and Codes

Posted on at


If you are a MATLAB aspirant then you will definitely enjoy this article full to length. This article is about the some funny and interesting commands that exist in MATLAB programming language. Let’s have a look on these.

1. INTRO

         >>intro

This command is a demonstration of introduction to MATLAB as a quick view. 

 

2. DEMO

         >>demo 

The above command  in MATLAB will list all the demos available offline on your MATLAB Software Package. These demos include videos tutorials, script files and GUI demos.

3. LOGO

         >>logo 

This command in MATLAB will show L-shaped MATLAB logo in figure window of MATLAB. 

4.SURF(MEMBRANE)

         >>surf(membrane)

This command in MATLAB will show the membrane plot . This demo is a membrane like L-shaped Matlab logo. You can use surf(membrane(n)) command where n can be 1,2,3... etc., giving you the number variation in this surf plot. 

 

  Also try for fun!

      
         >> vibes 

5.FIFTEEN 

         >>fifteen 

This command will launch a GUI of number slider game. This is a helpful demo in MATLAB GUI for interested MATLAB aspirants.

 

Some similar commands are as follow:

         >>sf_tictacflow
         >>xpbombs 

 

6. EARTHMAP

         >>earthmap

This command in MATLAB will show earth's map with several ways to represent the Earth's topography.

You may like the following commands in this regard.

         >>wrldtrv
         >>transpdemo


7. SPY

         >>spy
This command will show figure as below.

8. PENNY 

         >>penny

This command will show following figure.


9. LIFE

           >>life

This command will show following GUI.

10. WHY

       >>why

This command in MATLAB will provides succinct random answers to almost any question(Funny!).

 

11. !NOTEPAD

>>!notepad

This is Window OS command in MATLAB for notepad launch.

 

12. IMAGE

>>image

This will show the following image. 

 

 13. CODING : Images



Following is the result of above code. See that how MATLAB can store data images in double data type.


14. CODING: Heart Shape Modulation



The above code is plot of funny heart shape modulation.


15. CODING : Heart Shape

    The above code generates the beautiful Heart Shape. Math is fun with MATLAB!

 

Sources: User + MATLAB HELP



About the author

160